summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0034-policy-modules-system-systemd-enable-support-for-sys.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0034-policy-modules-system-systemd-enable-support-for-sys.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0034-policy-modules-system-systemd-enable-support-for-sys.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0034-policy-modules-system-systemd-enable-support-for-sys.patch b/recipes-security/refpolicy/refpolicy/0034-policy-modules-system-systemd-enable-support-for-sys.patch
new file mode 100644
index 0000000..e54d69e
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0034-policy-modules-system-systemd-enable-support-for-sys.patch
@@ -0,0 +1,46 @@
1From 48da8a2589b1d5bce2609fd307ca009605d801c3 Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Thu, 4 Feb 2016 06:03:19 -0500
4Subject: [PATCH] policy/modules/system/systemd: enable support for
5 systemd-tmpfiles to manage all non-security files
6
7Fixes:
8systemd-tmpfiles[226]: Failed to create directory or subvolume "/root/.ssh", ignoring: Permission denied
9systemd-tmpfiles[226]: Failed to create directory or subvolume "/var/lib/systemd/ephemeral-trees": Permission denied
10
11AVC avc: denied { relabelfrom } for pid=226 comm="systemd-tmpfile"
12name="root" dev="vda" ino=643 scontext=system_u:system_r:systemd_tmpfiles_t
13tcontext=root:object_r:user_home_dir_t tclass=dir permissive=0
14
15AVC avc: denied { write } for pid=226 comm="systemd-tmpfile"
16name="root" dev="vda" ino=643 scontext=system_u:system_r:systemd_tmpfiles_t
17tcontext=root:object_r:user_home_dir_t tclass=dir permissive=0
18
19AVC avc: denied { create } for pid=226 comm="systemd-tmpfile"
20name="ephemeral-trees" scontext=system_u:system_r:systemd_tmpfiles_t
21tcontext=system_u:object_r:init_var_lib_t tclass=dir permissive=0
22
23Upstream-Status: Inappropriate [embedded specific]
24
25Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
26Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
27---
28 policy/modules/system/systemd.te | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
32index b6d575f87..70a45ac58 100644
33--- a/policy/modules/system/systemd.te
34+++ b/policy/modules/system/systemd.te
35@@ -10,7 +10,7 @@ policy_module(systemd)
36 ## Enable support for systemd-tmpfiles to manage all non-security files.
37 ## </p>
38 ## </desc>
39-gen_tunable(systemd_tmpfiles_manage_all, false)
40+gen_tunable(systemd_tmpfiles_manage_all, true)
41
42 ## <desc>
43 ## <p>
44--
452.25.1
46