summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0044-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
diff options
context:
space:
mode:
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-.patch36
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 @@
1From faad8b18adb9a4f155ec0ec6317522baffff9117 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Tue, 30 Jun 2020 10:18:20 +0800
4Subject: [PATCH] policy/modules/admin/dmesg: make dmesg_t MLS trusted reading
5 from files up to its clearance
6
7Fixes:
8avc: denied { read } for pid=255 comm="dmesg" name="kmsg"
9dev="devtmpfs" ino=10032
10scontext=system_u:system_r:dmesg_t:s0-s15:c0.c1023
11tcontext=system_u:object_r:kmsg_device_t:s15:c0.c1023 tclass=chr_file
12permissive=0
13
14Upstream-Status: Inappropriate [embedded specific]
15
16Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
17---
18 policy/modules/admin/dmesg.te | 2 ++
19 1 file changed, 2 insertions(+)
20
21diff --git a/policy/modules/admin/dmesg.te b/policy/modules/admin/dmesg.te
22index 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--
352.25.1
36