diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0079-policy-modules-system-systemd-systemd-user-sessions-.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0079-policy-modules-system-systemd-systemd-user-sessions-.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0079-policy-modules-system-systemd-systemd-user-sessions-.patch b/recipes-security/refpolicy/refpolicy/0079-policy-modules-system-systemd-systemd-user-sessions-.patch deleted file mode 100644 index 3ea0085..0000000 --- a/recipes-security/refpolicy/refpolicy/0079-policy-modules-system-systemd-systemd-user-sessions-.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 6e3e1a5f79d6deab2966fc74c64720e90d248f3d Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Thu, 18 Jun 2020 09:39:23 +0800 | ||
4 | Subject: [PATCH] policy/modules/system/systemd: systemd-user-sessions: make | ||
5 | systemd_sessions_t MLS trusted for reading/writing from files at all levels | ||
6 | |||
7 | Fixes: | ||
8 | avc: denied { search } for pid=229 comm="systemd-user-se" | ||
9 | name="journal" dev="tmpfs" ino=10956 | ||
10 | scontext=system_u:system_r:systemd_sessions_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 { write } for pid=229 comm="systemd-user-se" name="kmsg" | ||
14 | dev="devtmpfs" ino=10032 | ||
15 | scontext=system_u:system_r:systemd_sessions_t:s0-s15:c0.c1023 | ||
16 | tcontext=system_u:object_r:kmsg_device_t:s15:c0.c1023 tclass=chr_file | ||
17 | permissive=0 | ||
18 | |||
19 | Upstream-Status: Inappropriate [embedded specific] | ||
20 | |||
21 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
22 | --- | ||
23 | policy/modules/system/systemd.te | 2 ++ | ||
24 | 1 file changed, 2 insertions(+) | ||
25 | |||
26 | diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te | ||
27 | index a7390b1cd..f0b0e8b92 100644 | ||
28 | --- a/policy/modules/system/systemd.te | ||
29 | +++ b/policy/modules/system/systemd.te | ||
30 | @@ -1261,6 +1261,8 @@ seutil_read_file_contexts(systemd_sessions_t) | ||
31 | |||
32 | systemd_log_parse_environment(systemd_sessions_t) | ||
33 | |||
34 | +mls_file_read_to_clearance(systemd_sessions_t) | ||
35 | +mls_file_write_all_levels(systemd_sessions_t) | ||
36 | |||
37 | ######################################### | ||
38 | # | ||
39 | -- | ||
40 | 2.17.1 | ||
41 | |||