display warning if using loadkeys_domtrans() in targeted

This commit is contained in:
Chris PeBenito 2006-08-03 18:02:28 +00:00
parent 9d3a3f84ad
commit 80f928e24b
1 changed files with 3 additions and 4 deletions

View File

@ -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.')
')
')