diff options
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.patch | 46 |
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 @@ | |||
1 | From 48da8a2589b1d5bce2609fd307ca009605d801c3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Thu, 4 Feb 2016 06:03:19 -0500 | ||
4 | Subject: [PATCH] policy/modules/system/systemd: enable support for | ||
5 | systemd-tmpfiles to manage all non-security files | ||
6 | |||
7 | Fixes: | ||
8 | systemd-tmpfiles[226]: Failed to create directory or subvolume "/root/.ssh", ignoring: Permission denied | ||
9 | systemd-tmpfiles[226]: Failed to create directory or subvolume "/var/lib/systemd/ephemeral-trees": Permission denied | ||
10 | |||
11 | AVC avc: denied { relabelfrom } for pid=226 comm="systemd-tmpfile" | ||
12 | name="root" dev="vda" ino=643 scontext=system_u:system_r:systemd_tmpfiles_t | ||
13 | tcontext=root:object_r:user_home_dir_t tclass=dir permissive=0 | ||
14 | |||
15 | AVC avc: denied { write } for pid=226 comm="systemd-tmpfile" | ||
16 | name="root" dev="vda" ino=643 scontext=system_u:system_r:systemd_tmpfiles_t | ||
17 | tcontext=root:object_r:user_home_dir_t tclass=dir permissive=0 | ||
18 | |||
19 | AVC avc: denied { create } for pid=226 comm="systemd-tmpfile" | ||
20 | name="ephemeral-trees" scontext=system_u:system_r:systemd_tmpfiles_t | ||
21 | tcontext=system_u:object_r:init_var_lib_t tclass=dir permissive=0 | ||
22 | |||
23 | Upstream-Status: Inappropriate [embedded specific] | ||
24 | |||
25 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
26 | Signed-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 | |||
31 | diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te | ||
32 | index 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 | -- | ||
45 | 2.25.1 | ||
46 | |||