commit: 80a409c0178ab54290d9ace5b6be2b4d384dd58f
Author: Corentin LABBE <clabbe.montjoie <AT> gmail <DOT> com>
AuthorDate: Tue Dec 27 20:27:08 2022 +0000
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Mon Feb 13 15:19:29 2023 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=80a409c0
mount: dbus interface must be optional
On gentoo, when emerging selinux-base-policy, the post install (loading policy)
fail due to a missing type.
This is due to mount.te using a dbus interface and the dbus module is not
present.
Fix this by setting the dbus interface as optional;
Signed-off-by: Corentin LABBE <clabbe.montjoie <AT> gmail.com>
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
policy/modules/system/mount.te | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/policy/modules/system/mount.te b/policy/modules/system/mount.te
index a90273bb6..22a47661a 100644
--- a/policy/modules/system/mount.te
+++ b/policy/modules/system/mount.te
@@ -148,8 +148,6 @@ selinux_getattr_fs(mount_t)
userdom_use_all_users_fds(mount_t)
-dbus_dontaudit_write_system_bus_runtime_named_sockets(mount_t)
-
ifdef(`distro_redhat',`
optional_policy(`
auth_read_pam_console_data(mount_t)
@@ -204,6 +202,10 @@ optional_policy(`
container_getattr_fs(mount_t)
')
+optional_policy(`
+ dbus_dontaudit_write_system_bus_runtime_named_sockets(mount_t)
+')
+
optional_policy(`
glusterfs_domtrans_daemon(mount_t)