display warning if using loadkeys_domtrans() in targeted
This commit is contained in:
parent
9d3a3f84ad
commit
80f928e24b
@ -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.')
|
||||
')
|
||||
')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user