diff options
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-.patch | 40 |
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 @@ | |||
1 | From fac0583bea8eb74c43cd715cf5029d3243e38f95 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Thu, 18 Jun 2020 09:47:25 +0800 | ||
4 | Subject: [PATCH] policy/modules/system/systemd: systemd-resolved: make | ||
5 | systemd_resolved_t MLS trusted for reading from files up to its clearance | ||
6 | |||
7 | Fixes: | ||
8 | avc: denied { search } for pid=220 comm="systemd-resolve" | ||
9 | name="journal" dev="tmpfs" ino=10956 | ||
10 | scontext=system_u:system_r:systemd_resolved_t:s0-s15:c0.c1023 | ||
11 | tcontext=system_u:object_r:syslogd_runtime_t:s15:c0.c1023 tclass=dir | ||
12 | permissive=0 | ||
13 | avc: denied { search } for pid=220 comm="systemd-resolve" name="/" | ||
14 | dev="tmpfs" ino=15102 | ||
15 | scontext=system_u:system_r:systemd_resolved_t:s0-s15:c0.c1023 | ||
16 | tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir permissive=0 | ||
17 | |||
18 | Upstream-Status: Inappropriate [embedded specific] | ||
19 | |||
20 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
21 | --- | ||
22 | policy/modules/system/systemd.te | 2 ++ | ||
23 | 1 file changed, 2 insertions(+) | ||
24 | |||
25 | diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te | ||
26 | index 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 | -- | ||
39 | 2.17.1 | ||
40 | |||