summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch b/recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
new file mode 100644
index 0000000..908fe64
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0076-policy-modules-system-systemd-systemd-resolved-make-.patch
@@ -0,0 +1,40 @@
1From fac0583bea8eb74c43cd715cf5029d3243e38f95 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 18 Jun 2020 09:47:25 +0800
4Subject: [PATCH] policy/modules/system/systemd: systemd-resolved: make
5 systemd_resolved_t MLS trusted for reading from files up to its clearance
6
7Fixes:
8avc: denied { search } for pid=220 comm="systemd-resolve"
9name="journal" dev="tmpfs" ino=10956
10scontext=system_u:system_r:systemd_resolved_t:s0-s15:c0.c1023
11tcontext=system_u:object_r:syslogd_runtime_t:s15:c0.c1023 tclass=dir
12permissive=0
13avc: denied { search } for pid=220 comm="systemd-resolve" name="/"
14dev="tmpfs" ino=15102
15scontext=system_u:system_r:systemd_resolved_t:s0-s15:c0.c1023
16tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir permissive=0
17
18Upstream-Status: Inappropriate [embedded specific]
19
20Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
21---
22 policy/modules/system/systemd.te | 2 ++
23 1 file changed, 2 insertions(+)
24
25diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
26index cfbd9196a..806468109 100644
27--- a/policy/modules/system/systemd.te
28+++ b/policy/modules/system/systemd.te
29@@ -1096,6 +1096,8 @@ init_dgram_send(systemd_resolved_t)
30
31 seutil_read_file_contexts(systemd_resolved_t)
32
33+mls_file_read_to_clearance(systemd_resolved_t)
34+
35 systemd_log_parse_environment(systemd_resolved_t)
36 systemd_read_networkd_runtime(systemd_resolved_t)
37
38--
392.17.1
40