From 5aac13d196421832cce09081e80d14dafcd77880 Mon Sep 17 00:00:00 2001 From: nettingsisyphus Date: Wed, 23 Dec 2020 09:34:21 +0800 Subject: [PATCH] add file context for firewalld temporary file --- add-firewalld-fc.patch | 12 ++++++++++++ selinux-policy.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 add-firewalld-fc.patch diff --git a/add-firewalld-fc.patch b/add-firewalld-fc.patch new file mode 100644 index 0000000..524cd2c --- /dev/null +++ b/add-firewalld-fc.patch @@ -0,0 +1,12 @@ +diff -uprN selinux-policy-9c84d687e0fef5d8e4e25273bd25f58c28a7c67c.orig/policy/modules/contrib/firewalld.fc selinux-policy-9c84d687e0fef5d8e4e25273bd25f58c28a7c67c/policy/modules/contrib/firewalld.fc +--- selinux-policy-9c84d687e0fef5d8e4e25273bd25f58c28a7c67c.orig/policy/modules/contrib/firewalld.fc 2020-09-03 14:43:46.690880806 +0200 ++++ selinux-policy-9c84d687e0fef5d8e4e25273bd25f58c28a7c67c/policy/modules/contrib/firewalld.fc 2020-09-10 17:25:25.126199087 +0200 +@@ -6,6 +6,8 @@ + + /usr/sbin/firewalld -- gen_context(system_u:object_r:firewalld_exec_t,s0) + ++/usr/share/firewalld/firewalld-tmp-mmap -- gen_context(system_u:object_r:firewalld_tmp_t,s0) ++ + /var/log/firewalld.* -- gen_context(system_u:object_r:firewalld_var_log_t,s0) + + /var/run/firewalld(/.*)? gen_context(system_u:object_r:firewalld_var_run_t,s0) diff --git a/selinux-policy.spec b/selinux-policy.spec index d9e991f..e9daef6 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -12,7 +12,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 3.14.2 -Release: 64 +Release: 65 License: GPLv2+ URL: https://github.com/fedora-selinux/selinux-policy/ @@ -66,6 +66,7 @@ Patch13: allow-systemd-to-mount-unlabeled-filesystemd.patch Patch14: add_userman_access_run_dir.patch Patch15: add-allow-systemd-timedated-to-unlink-etc-link.patch Patch16: add-avc-for-openEuler-1.patch +Patch17: add-firewalld-fc.patch BuildArch: noarch BuildRequires: python3 gawk checkpolicy >= %{CHECKPOLICYVER} m4 policycoreutils-devel >= %{POLICYCOREUTILSVER} bzip2 gcc @@ -732,6 +733,9 @@ exit 0 %endif %changelog +* Tue Dec 23 2020 openEuler Buildteam - 3.14.2-65 +- add add-firewalld-fc.patch + * Sun Dec 13 2020 luhuaxin <1539327763@qq.com> - 3.14.2-64 - add avc for openEuler -- Gitee