summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2022-11-09 12:30:58 +0800
committerJoe MacDonald <joe@deserted.net>2022-11-23 09:26:29 -0500
commitf6d73a35d3853ab09297fa1738890706901f43b8 (patch)
treeade400c3827c3a84dbda977da7894c275b711de1 /recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
parente9270d6e5889a854edd1305b91d3e5c7268d0cb8 (diff)
downloadmeta-selinux-f6d73a35d3853ab09297fa1738890706901f43b8.tar.gz
refpolicy: upgrade 20210908+git -> 20221101+gitlangdale
* Update to latest git rev. * Drop obsolete and useless patches. * Rebase patches. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch b/recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
new file mode 100644
index 0000000..30c84f6
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0042-policy-modules-admin-dmesg-make-dmesg_t-MLS-trusted-.patch
@@ -0,0 +1,36 @@
1From 9343914c0486b5aa6ff7cceeb8f6c399115e5fb3 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