diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch b/recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch new file mode 100644 index 0000000..ebe2b52 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From bea1f53ae2ba7608503051b874db9aecb97d4f00 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 1449d2808..6b0f52d15 100644 | ||
28 | --- a/policy/modules/system/systemd.te | ||
29 | +++ b/policy/modules/system/systemd.te | ||
30 | @@ -1125,6 +1125,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 | |||