diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch b/recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch deleted file mode 100644 index 9d4bbf7..0000000 --- a/recipes-security/refpolicy/refpolicy/0055-policy-modules-system-systemd-allow-systemd-generato.patch +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | From 954a49ec0a4dc64fd9e513abe7a737d956b337ca Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 9 Feb 2021 17:50:24 +0800 | ||
4 | Subject: [PATCH] policy/modules/system/systemd: allow systemd-generators to | ||
5 | get the attributes of tmpfs and cgroup | ||
6 | |||
7 | * Allow systemd-generators to get the attributes of a tmpfs | ||
8 | * Allow systemd-generators to get the attributes of cgroup filesystems | ||
9 | |||
10 | Fixes: | ||
11 | systemd[95]: /lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1. | ||
12 | |||
13 | avc: denied { getattr } for pid=102 comm="systemd-run-gen" name="/" | ||
14 | dev="tmpfs" ino=11208 scontext=system_u:system_r:systemd_generator_t | ||
15 | tcontext=system_u:object_r:tmpfs_t tclass=filesystem permissive=0 | ||
16 | |||
17 | avc: denied { getattr } for pid=98 comm="systemd-getty-g" name="/" | ||
18 | dev="tmpfs" ino=11208 scontext=system_u:system_r:systemd_generator_t | ||
19 | tcontext=system_u:object_r:tmpfs_t tclass=filesystem permissive=0 | ||
20 | |||
21 | avc: denied { getattr } for pid=104 comm="systemd-sysv-ge" name="/" | ||
22 | dev="tmpfs" ino=11208 scontext=system_u:system_r:systemd_generator_t | ||
23 | tcontext=system_u:object_r:tmpfs_t tclass=filesystem permissive=0 | ||
24 | |||
25 | avc: denied { getattr } for pid=97 comm="systemd-fstab-g" name="/" | ||
26 | dev="tmpfs" ino=11208 scontext=system_u:system_r:systemd_generator_t | ||
27 | tcontext=system_u:object_r:tmpfs_t tclass=filesystem permissive=0 | ||
28 | |||
29 | avc: denied { getattr } for pid=102 comm="systemd-run-gen" name="/" | ||
30 | dev="cgroup" ino=1 scontext=system_u:system_r:systemd_generator_t | ||
31 | tcontext=system_u:object_r:cgroup_t tclass=filesystem permissive=0 | ||
32 | |||
33 | avc: denied { getattr } for pid=100 comm="systemd-hiberna" name="/" | ||
34 | dev="cgroup" ino=1 scontext=system_u:system_r:systemd_generator_t | ||
35 | tcontext=system_u:object_r:cgroup_t tclass=filesystem permissive=0 | ||
36 | |||
37 | avc: denied { getattr } for pid=99 comm="systemd-gpt-aut" name="/" | ||
38 | dev="cgroup2" ino=1 scontext=system_u:system_r:systemd_generator_t | ||
39 | tcontext=system_u:object_r:cgroup_t tclass=filesystem permissive=0 | ||
40 | |||
41 | avc: denied { getattr } for pid=97 comm="systemd-fstab-g" | ||
42 | path="/var/volatile" dev="vda" ino=37131 | ||
43 | scontext=system_u:system_r:systemd_generator_t | ||
44 | tcontext=system_u:object_r:unlabeled_t tclass=dir permissive=0 | ||
45 | |||
46 | Upstream-Status: Inappropriate [embedded specific] | ||
47 | |||
48 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
49 | --- | ||
50 | policy/modules/system/systemd.te | 3 +++ | ||
51 | 1 file changed, 3 insertions(+) | ||
52 | |||
53 | diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te | ||
54 | index 2d9d7d331..c1111198d 100644 | ||
55 | --- a/policy/modules/system/systemd.te | ||
56 | +++ b/policy/modules/system/systemd.te | ||
57 | @@ -431,6 +431,9 @@ files_list_usr(systemd_generator_t) | ||
58 | |||
59 | fs_list_efivars(systemd_generator_t) | ||
60 | fs_getattr_xattr_fs(systemd_generator_t) | ||
61 | +fs_getattr_tmpfs(systemd_generator_t) | ||
62 | +fs_getattr_cgroup(systemd_generator_t) | ||
63 | +kernel_getattr_unlabeled_dirs(systemd_generator_t) | ||
64 | |||
65 | init_create_runtime_files(systemd_generator_t) | ||
66 | init_manage_runtime_dirs(systemd_generator_t) | ||
67 | -- | ||
68 | 2.17.1 | ||
69 | |||