aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2024-06-05 10:32:34 +0800
committerJason Zaman <perfinion@gentoo.org>2024-09-21 15:00:01 -0700
commit2078ac0d6ca3ac816d538121a18249b6a17f0708 (patch)
treed8617fcf3f1180a0c31eb7dc533e4998bc0af926 /policy/modules/system/selinuxutil.te
parentnewrole: allow newrole to search faillock runtime directory (diff)
downloadhardened-refpolicy-2078ac0d6ca3ac816d538121a18249b6a17f0708.tar.gz
hardened-refpolicy-2078ac0d6ca3ac816d538121a18249b6a17f0708.tar.bz2
hardened-refpolicy-2078ac0d6ca3ac816d538121a18249b6a17f0708.zip
selinuxutil: make policykit optional
Make policykit optional to avoid a potential build error. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'policy/modules/system/selinuxutil.te')
-rw-r--r--policy/modules/system/selinuxutil.te6
1 files changed, 4 insertions, 2 deletions
diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te
index 7f24be9ff..675fd8666 100644
--- a/policy/modules/system/selinuxutil.te
+++ b/policy/modules/system/selinuxutil.te
@@ -504,12 +504,14 @@ corecmd_exec_bin(selinux_dbus_t)
files_read_etc_symlinks(selinux_dbus_t)
files_list_usr(selinux_dbus_t)
-policykit_dbus_chat(selinux_dbus_t)
-
miscfiles_read_localization(selinux_dbus_t)
seutil_domtrans_semanage(selinux_dbus_t)
+optional_policy(`
+ policykit_dbus_chat(selinux_dbus_t)
+')
+
########################################
#
# semodule local policy