diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2024-06-05 10:32:34 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2024-09-21 15:00:01 -0700 |
commit | 2078ac0d6ca3ac816d538121a18249b6a17f0708 (patch) | |
tree | d8617fcf3f1180a0c31eb7dc533e4998bc0af926 | |
parent | newrole: allow newrole to search faillock runtime directory (diff) | |
download | hardened-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>
-rw-r--r-- | policy/modules/system/selinuxutil.te | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te index 7f24be9f..675fd866 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 |