[selinux-policy: 1558/3172] display warning if using loadkeys_domtrans() in targeted
Daniel J Walsh
dwalsh at fedoraproject.org
Thu Oct 7 21:19:52 UTC 2010
commit 80f928e24b730d9466b2065b048c208dc2fa8e2e
Author: Chris PeBenito <cpebenito at tresys.com>
Date: Thu Aug 3 18:02:28 2006 +0000
display warning if using loadkeys_domtrans() in targeted
policy/modules/apps/loadkeys.if | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/policy/modules/apps/loadkeys.if b/policy/modules/apps/loadkeys.if
index 3d96369..3e2f6da 100644
--- a/policy/modules/apps/loadkeys.if
+++ b/policy/modules/apps/loadkeys.if
@@ -11,10 +11,7 @@
## </param>
#
interface(`loadkeys_domtrans',`
- ifdef(`targeted_policy',`
- # $0(): disabled in targeted policy as there
- # is no loadkeys domain.
- ',`
+ ifdef(`strict_policy',`
gen_require(`
type loadkeys_t, loadkeys_exec_t;
')
@@ -26,6 +23,8 @@ interface(`loadkeys_domtrans',`
allow loadkeys_t $1:fd use;
allow loadkeys_t $1:fifo_file rw_file_perms;
allow loadkeys_t $1:process sigchld;
+ ',`
+ refpolicywarn(`$0($*) has no effect in targeted policy.')
')
')
More information about the scm-commits
mailing list