From d9fbd8ba86c500806da4ecd962841661fe607eb3 Mon Sep 17 00:00:00 2001 From: lixiao Date: Thu, 29 Dec 2022 16:53:41 +0800 Subject: [PATCH] add rule for hostnamed to rpmscript dbus chat --- ...for-hostnamed-to-rpmscript-dbus-chat.patch | 24 +++++++++++++++++++ selinux-policy.spec | 6 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 add-rule-for-hostnamed-to-rpmscript-dbus-chat.patch diff --git a/add-rule-for-hostnamed-to-rpmscript-dbus-chat.patch b/add-rule-for-hostnamed-to-rpmscript-dbus-chat.patch new file mode 100644 index 0000000..4b7c4b2 --- /dev/null +++ b/add-rule-for-hostnamed-to-rpmscript-dbus-chat.patch @@ -0,0 +1,24 @@ +From ad87c8bd66e7625f87d15735ae4ada8466ff7e7e Mon Sep 17 00:00:00 2001 +From: lixiao +Date: Thu, 29 Dec 2022 16:37:42 +0800 +Subject: [PATCH] add rule for hostnamed 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 10c1d49..b68d7df 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -12,7 +12,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 35.5 -Release: 15 +Release: 16 License: GPLv2+ URL: https://github.com/fedora-selinux/selinux-policy/ @@ -197,6 +197,7 @@ Patch9001: fix-context-of-usr-bin-rpmdb.patch 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: add-rule-for-hostnamed-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 +* Thu Dec 29 2022 lixiao - 35.5-16 +- add rule for hostnamed to rpmscript dbus chat + * Sat Dec 24 2022 lixiao - 35.5-15 - add the dependency between packages -- Gitee