From c6dd4087def22fa0f3e2b62bce5fc531bbf824a0 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Wed, 5 Jun 2024 10:32:34 +0800 Subject: [PATCH] selinuxutil: make policykit optional Make policykit optional to avoid a potential build error. Signed-off-by: Yi Zhao --- policy/modules/system/selinuxutil.te | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te index ebc1abc108..3e1fc4fdec 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te @@ -500,12 +500,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