summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0074-policy-modules-system-systemd-systemd-user-sessions-.patch
diff options
context:
space:
mode:
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-.patch41
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 @@
1From bea1f53ae2ba7608503051b874db9aecb97d4f00 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 18 Jun 2020 09:39:23 +0800
4Subject: [PATCH] policy/modules/system/systemd: systemd-user-sessions: make
5 systemd_sessions_t MLS trusted for reading/writing from files at all levels
6
7Fixes:
8avc: denied { search } for pid=229 comm="systemd-user-se"
9name="journal" dev="tmpfs" ino=10956
10scontext=system_u:system_r:systemd_sessions_t:s0-s15:c0.c1023
11tcontext=system_u:object_r:syslogd_runtime_t:s15:c0.c1023 tclass=dir
12permissive=0
13avc: denied { write } for pid=229 comm="systemd-user-se" name="kmsg"
14dev="devtmpfs" ino=10032
15scontext=system_u:system_r:systemd_sessions_t:s0-s15:c0.c1023
16tcontext=system_u:object_r:kmsg_device_t:s15:c0.c1023 tclass=chr_file
17permissive=0
18
19Upstream-Status: Inappropriate [embedded specific]
20
21Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
22---
23 policy/modules/system/systemd.te | 2 ++
24 1 file changed, 2 insertions(+)
25
26diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
27index 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--
402.17.1
41