diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch b/recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch new file mode 100644 index 0000000..3be2cdc --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0038-policy-modules-system-getty-allow-getty_t-watch-gett.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 383a70a87049ef5065bba4c2c4d4bc3cff914358 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 23 Jun 2020 08:39:44 +0800 | ||
4 | Subject: [PATCH] policy/modules/system/getty: allow getty_t watch | ||
5 | getty_runtime_t file | ||
6 | |||
7 | Fixes: | ||
8 | type=AVC msg=audit(1592813140.280:26): avc: denied { watch } for | ||
9 | pid=385 comm="getty" path="/run/agetty.reload" dev="tmpfs" ino=12247 | ||
10 | scontext=system_u:system_r:getty_t | ||
11 | tcontext=system_u:object_r:getty_runtime_t tclass=file permissive=1 | ||
12 | |||
13 | Upstream-Status: Inappropriate [embedded specific] | ||
14 | |||
15 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
16 | --- | ||
17 | policy/modules/system/getty.te | 2 ++ | ||
18 | 1 file changed, 2 insertions(+) | ||
19 | |||
20 | diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te | ||
21 | index f5316c30a..39e27e5f1 100644 | ||
22 | --- a/policy/modules/system/getty.te | ||
23 | +++ b/policy/modules/system/getty.te | ||
24 | @@ -47,6 +47,7 @@ allow getty_t getty_log_t:file { append_file_perms create_file_perms setattr_fil | ||
25 | logging_log_filetrans(getty_t, getty_log_t, file) | ||
26 | |||
27 | allow getty_t getty_runtime_t:dir watch; | ||
28 | +allow getty_t getty_runtime_t:file watch; | ||
29 | manage_files_pattern(getty_t, getty_runtime_t, getty_runtime_t) | ||
30 | files_runtime_filetrans(getty_t, getty_runtime_t, file) | ||
31 | |||
32 | @@ -65,6 +66,7 @@ dev_read_sysfs(getty_t) | ||
33 | files_read_etc_runtime_files(getty_t) | ||
34 | files_read_etc_files(getty_t) | ||
35 | files_search_spool(getty_t) | ||
36 | +fs_search_tmpfs(getty_t) | ||
37 | |||
38 | fs_search_auto_mountpoints(getty_t) | ||
39 | # for error condition handling | ||
40 | -- | ||
41 | 2.17.1 | ||
42 | |||