代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/selinux-policy 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 569208d534e1a53d75b187ec44ecda856ee6139c Mon Sep 17 00:00:00 2001
From: Zdenek Pytela <zpytela@redhat.com>
Date: Wed, 26 Jan 2022 14:41:59 +0100
Subject: [PATCH] Allow systemd services watch dbusd pid directory and its
parents
Reference: https://gitbub.com/fedora-selinux/selinux-policy/commit/569208d534e1a53d75b187ec44ecda856ee6139c
Conflict: NA
The following services were allowed to watch /run/dbus and all its
parents:
- systemd-hostnamed
- systemd-machined
- systemd-networkd
- systemd-resolved
- systemd-timesyncd and systemd-timedated
These permissions are required when the services start earlier than
dbus-broker manages to establish the socket communication, e. g. after
$ systemctl disable NetworkManager && systemctl enable systemd-networkd
The dbus_watch_pid_dir_path() interface was added. The redundant
dbus_watch_pid_dirs() calls were removed.
Resolves: rhbz#2031668
Signed-off-by: lujie54 <lujie54@huawei.com>
---
policy/modules/contrib/dbus.if | 21 +++++++++++++++++++++
policy/modules/system/systemd.te | 7 +++++--
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/policy/modules/contrib/dbus.if b/policy/modules/contrib/dbus.if
index deb6f10..7ec03b1 100644
--- a/policy/modules/contrib/dbus.if
+++ b/policy/modules/contrib/dbus.if
@@ -606,6 +606,27 @@ interface(`dbus_watch_pid_dirs',`
########################################
## <summary>
+## Watch system dbusd pid directory and all its parents
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`dbus_watch_pid_dir_path',`
+ gen_require(`
+ type system_dbusd_var_run_t;
+ ')
+
+ files_watch_root_dirs($1)
+ files_watch_var_run_dirs($1)
+ files_search_pids($1)
+ allow $1 system_dbusd_var_run_t:dir watch_dir_perms;
+')
+
+########################################
+## <summary>
## Read and write system dbus tmp socket files.
## </summary>
## <param name="domain">
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
index ea2b27e..2d8db7e 100644
--- a/policy/modules/system/systemd.te
+++ b/policy/modules/system/systemd.te
@@ -458,6 +458,7 @@ getty_start_services(systemd_machined_t)
optional_policy(`
dbus_connect_system_bus(systemd_machined_t)
dbus_system_bus_client(systemd_machined_t)
+ dbus_watch_pid_dir_path(systemd_machined_t)
')
optional_policy(`
@@ -536,6 +537,7 @@ init_named_pid_filetrans(systemd_logind_t, systemd_networkd_var_run_t, dir, "net
optional_policy(`
dbus_system_bus_client(systemd_networkd_t)
dbus_connect_system_bus(systemd_networkd_t)
+ dbus_watch_pid_dir_path(systemd_networkd_t)
dbus_read_pid_files(systemd_networkd_t)
dbus_read_pid_sock_files(systemd_networkd_t)
systemd_dbus_chat_logind(systemd_networkd_t)
@@ -862,6 +864,7 @@ userdom_dbus_send_all_users(systemd_hostnamed_t)
optional_policy(`
dbus_system_bus_client(systemd_hostnamed_t)
dbus_connect_system_bus(systemd_hostnamed_t)
+ dbus_watch_pid_dir_path(systemd_hostnamed_t)
')
optional_policy(`
@@ -978,7 +981,7 @@ optional_policy(`
dbus_system_bus_client(systemd_timedated_t)
dbus_connect_system_bus(systemd_timedated_t)
dbus_read_pid_sock_files(systemd_timedated_t)
- dbus_watch_pid_dirs(systemd_timedated_t)
+ dbus_watch_pid_dir_path(systemd_timedated_t)
dbus_watch_pid_sock_files(systemd_timedated_t)
')
@@ -1168,8 +1171,8 @@ optional_policy(`
dbus_connect_system_bus(systemd_resolved_t)
dbus_read_pid_files(systemd_resolved_t)
dbus_read_pid_sock_files(systemd_resolved_t)
+ dbus_watch_pid_dir_path(systemd_resolved_t)
dbus_watch_pid_sock_files(systemd_resolved_t)
- dbus_watch_pid_dirs(systemd_resolved_t)
systemd_dbus_chat_logind(systemd_resolved_t)
')
--
1.8.3.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。