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