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