diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-minimum/0006-refpolicy-minimum-systemd-mount-enable-requiried-ref.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-minimum/0006-refpolicy-minimum-systemd-mount-enable-requiried-ref.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/recipes-security/refpolicy/refpolicy-minimum/0006-refpolicy-minimum-systemd-mount-enable-requiried-ref.patch b/recipes-security/refpolicy/refpolicy-minimum/0006-refpolicy-minimum-systemd-mount-enable-requiried-ref.patch deleted file mode 100644 index bf7b980..0000000 --- a/recipes-security/refpolicy/refpolicy-minimum/0006-refpolicy-minimum-systemd-mount-enable-requiried-ref.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | refpolicy-minimum: systemd: mount: enable required refpolicy booleans | ||
2 | |||
3 | enable required refpolicy booleans for these modules | ||
4 | |||
5 | i. mount: allow_mount_anyfile | ||
6 | without enabling this boolean we are getting below avc denial | ||
7 | |||
8 | audit(): avc: denied { mounton } for pid=462 comm="mount" path="/run/media | ||
9 | /mmcblk2p1" dev="tmpfs" ino=11523 scontext=system_u:system_r:mount_t:s0 | ||
10 | tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=dir permissive=0 | ||
11 | |||
12 | This avc can be allowed using the boolean 'allow_mount_anyfile' | ||
13 | allow mount_t initrc_var_run_t:dir mounton; | ||
14 | |||
15 | ii. systemd : systemd_tmpfiles_manage_all | ||
16 | without enabling this boolean we are not getting access to mount systemd | ||
17 | essential tmpfs during bootup, also not getting access to create audit.log | ||
18 | |||
19 | audit(): avc: denied { search } for pid=168 comm="systemd-tmpfile" name= | ||
20 | "sys" dev="proc" ino=4026531855 scontext=system_u:system_r:systemd_tmpfiles | ||
21 | _t:s0 tcontext=system_u:object_r:sysctl_t:s0 tclass=dir permissive=0 | ||
22 | |||
23 | ls /var/log | ||
24 | /var/log -> volatile/log | ||
25 | :~# | ||
26 | |||
27 | Upstream-Status: Pending | ||
28 | |||
29 | Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com> | ||
30 | |||
31 | --- a/policy/booleans.conf | ||
32 | +++ b/policy/booleans.conf | ||
33 | @@ -1156,12 +1156,12 @@ racoon_read_shadow = false | ||
34 | # | ||
35 | # Allow the mount command to mount any directory or file. | ||
36 | # | ||
37 | -allow_mount_anyfile = false | ||
38 | +allow_mount_anyfile = true | ||
39 | |||
40 | # | ||
41 | # Enable support for systemd-tmpfiles to manage all non-security files. | ||
42 | # | ||
43 | -systemd_tmpfiles_manage_all = false | ||
44 | +systemd_tmpfiles_manage_all = true | ||
45 | |||
46 | # | ||
47 | # Allow users to connect to mysql | ||