From 3b219defea742d0932436d6c4d7c8e58bb73ac2b Mon Sep 17 00:00:00 2001 From: jinlun Date: Wed, 20 Dec 2023 10:51:26 +0800 Subject: [PATCH] add rules for hostnamed to rpmScript dbus chat --- ...-for-hostname-to-rpmScript-dbus-chat.patch | 24 +++++++++++++++++++ selinux-policy.spec | 6 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 add-rules-for-hostname-to-rpmScript-dbus-chat.patch diff --git a/add-rules-for-hostname-to-rpmScript-dbus-chat.patch b/add-rules-for-hostname-to-rpmScript-dbus-chat.patch new file mode 100644 index 0000000..fddb744 --- /dev/null +++ b/add-rules-for-hostname-to-rpmScript-dbus-chat.patch @@ -0,0 +1,24 @@ +From 87036953c68ee07a5ea1a4c2b3082620f261131d Mon Sep 17 00:00:00 2001 +From: jinlun +Date: Tue, 19 Dec 2023 19:41:14 +0800 +Subject: [PATCH] add rules for hostname to rpmScript dbus chat + +--- + policy/modules/contrib/rpm.te | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/policy/modules/contrib/rpm.te b/policy/modules/contrib/rpm.te +index 91337e4..10ab605 100644 +--- a/policy/modules/contrib/rpm.te ++++ b/policy/modules/contrib/rpm.te +@@ -465,6 +465,7 @@ optional_policy(` + systemd_dbus_chat_logind(rpm_script_t) + systemd_dbus_chat_timedated(rpm_script_t) + systemd_dbus_chat_localed(rpm_script_t) ++ systemd_dbus_chat_hostnamed(rpm_script_t) + ') + ') + +-- +2.27.0 + diff --git a/selinux-policy.spec b/selinux-policy.spec index 1c7f093..0215d44 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -12,7 +12,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 35.5 -Release: 21 +Release: 22 License: GPLv2+ URL: https://github.com/fedora-selinux/selinux-policy/ @@ -283,6 +283,7 @@ Patch9003: allow-httpd-to-put-files-in-httpd-config-dir.patch Patch9004: allow-map-postfix_master_t.patch Patch9005: add-rule-for-hostnamed-to-rpmscript-dbus-chat.patch Patch9006: allow-init_t-create-fifo-file-in-net_conf-dir.patch +Patch9007: add-rules-for-hostname-to-rpmScript-dbus-chat.patch BuildArch: noarch BuildRequires: python3 gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils-devel >= %{POLICYCOREUTILSVER} bzip2 gcc @@ -951,6 +952,9 @@ exit 0 %endif %changelog ++* Wed Dec 20 2023 jinlun - 35.5-22 ++- add rules for hostnamed to rpmScript dbus chat + * Thu Aug 24 2023 wangqingsan - 35.5-21 - backport upstream patches -- Gitee