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

View File

@ -11,10 +11,7 @@
## </param> ## </param>
# #
interface(`loadkeys_domtrans',` interface(`loadkeys_domtrans',`
ifdef(`targeted_policy',` ifdef(`strict_policy',`
# $0(): disabled in targeted policy as there
# is no loadkeys domain.
',`
gen_require(` gen_require(`
type loadkeys_t, loadkeys_exec_t; type loadkeys_t, loadkeys_exec_t;
') ')
@ -26,6 +23,8 @@ interface(`loadkeys_domtrans',`
allow loadkeys_t $1:fd use; allow loadkeys_t $1:fd use;
allow loadkeys_t $1:fifo_file rw_file_perms; allow loadkeys_t $1:fifo_file rw_file_perms;
allow loadkeys_t $1:process sigchld; allow loadkeys_t $1:process sigchld;
',`
refpolicywarn(`$0($*) has no effect in targeted policy.')
') ')
') ')