From ccae9335740ca52464d7d556d3c0207ac8ded4c5 Mon Sep 17 00:00:00 2001 From: jinlun Date: Tue, 19 Dec 2023 19:49:03 +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 26b4791..658c36c 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -12,7 +12,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 35.5 -Release: 17 +Release: 18 License: GPLv2+ URL: https://github.com/fedora-selinux/selinux-policy/ @@ -200,6 +200,7 @@ Patch9002: Add-permission-open-to-files_read_inherited_tmp_file.patch Patch9003: allow-httpd-to-put-files-in-httpd-config-dir.patch Patch9004: allow-map-postfix_master_t.patch Patch9005: allow-init_t-create-fifo-file-in-net_conf-dir.patch +Patch9006: add-rules-for-hostname-to-rpmScript-dbus-chat.patch BuildArch: noarch BuildRequires: python3 gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils-devel >= %{POLICYCOREUTILSVER} bzip2 gcc @@ -865,6 +866,9 @@ exit 0 %endif %changelog +* Tue Dec 19 2023 jinlun - 35.5-18 +- add rules for hostnamed to rpmScript dbus chat + * Wed Jul 5 2023 jinlun - 35.5-17 - allow init_t create fifo file in net_conf dir. -- Gitee