diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0044-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0044-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0044-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch b/recipes-security/refpolicy/refpolicy/0044-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch new file mode 100644 index 0000000..c5943cb --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0044-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From faad8b18adb9a4f155ec0ec6317522baffff9117 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 30 Jun 2020 10:18:20 +0800 | ||
4 | Subject: [PATCH] policy/modules/admin/dmesg: make dmesg_t MLS trusted reading | ||
5 | from files up to its clearance | ||
6 | |||
7 | Fixes: | ||
8 | avc: denied { read } for pid=255 comm="dmesg" name="kmsg" | ||
9 | dev="devtmpfs" ino=10032 | ||
10 | scontext=system_u:system_r:dmesg_t:s0-s15:c0.c1023 | ||
11 | tcontext=system_u:object_r:kmsg_device_t:s15:c0.c1023 tclass=chr_file | ||
12 | permissive=0 | ||
13 | |||
14 | Upstream-Status: Inappropriate [embedded specific] | ||
15 | |||
16 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
17 | --- | ||
18 | policy/modules/admin/dmesg.te | 2 ++ | ||
19 | 1 file changed, 2 insertions(+) | ||
20 | |||
21 | diff --git a/policy/modules/admin/dmesg.te b/policy/modules/admin/dmesg.te | ||
22 | index f1da315a9..89478c38e 100644 | ||
23 | --- a/policy/modules/admin/dmesg.te | ||
24 | +++ b/policy/modules/admin/dmesg.te | ||
25 | @@ -52,6 +52,8 @@ miscfiles_read_localization(dmesg_t) | ||
26 | userdom_dontaudit_use_unpriv_user_fds(dmesg_t) | ||
27 | userdom_use_user_terminals(dmesg_t) | ||
28 | |||
29 | +mls_file_read_to_clearance(dmesg_t) | ||
30 | + | ||
31 | optional_policy(` | ||
32 | seutil_sigchld_newrole(dmesg_t) | ||
33 | ') | ||
34 | -- | ||
35 | 2.25.1 | ||
36 | |||