diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-2.20140311/poky-policy-fix-dmesg-to-use-dev-kmsg.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-2.20140311/poky-policy-fix-dmesg-to-use-dev-kmsg.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20140311/poky-policy-fix-dmesg-to-use-dev-kmsg.patch b/recipes-security/refpolicy/refpolicy-2.20140311/poky-policy-fix-dmesg-to-use-dev-kmsg.patch new file mode 100644 index 0000000..d6c8dbf --- /dev/null +++ b/recipes-security/refpolicy/refpolicy-2.20140311/poky-policy-fix-dmesg-to-use-dev-kmsg.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 2f5981f2244289a1cc79748e9ffdaaea168b1df2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Fri, 23 Aug 2013 16:36:09 +0800 | ||
4 | Subject: [PATCH] fix dmesg to use /dev/kmsg as default input | ||
5 | |||
6 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
7 | --- | ||
8 | policy/modules/admin/dmesg.if | 1 + | ||
9 | policy/modules/admin/dmesg.te | 2 ++ | ||
10 | 2 files changed, 3 insertions(+) | ||
11 | |||
12 | diff --git a/policy/modules/admin/dmesg.if b/policy/modules/admin/dmesg.if | ||
13 | index e1973c7..739a4bc 100644 | ||
14 | --- a/policy/modules/admin/dmesg.if | ||
15 | +++ b/policy/modules/admin/dmesg.if | ||
16 | @@ -37,4 +37,5 @@ interface(`dmesg_exec',` | ||
17 | |||
18 | corecmd_search_bin($1) | ||
19 | can_exec($1, dmesg_exec_t) | ||
20 | + dev_read_kmsg($1) | ||
21 | ') | ||
22 | diff --git a/policy/modules/admin/dmesg.te b/policy/modules/admin/dmesg.te | ||
23 | index 72bc6d8..c591aea 100644 | ||
24 | --- a/policy/modules/admin/dmesg.te | ||
25 | +++ b/policy/modules/admin/dmesg.te | ||
26 | @@ -28,6 +28,8 @@ kernel_read_proc_symlinks(dmesg_t) | ||
27 | |||
28 | dev_read_sysfs(dmesg_t) | ||
29 | |||
30 | +dev_read_kmsg(dmesg_t) | ||
31 | + | ||
32 | fs_search_auto_mountpoints(dmesg_t) | ||
33 | |||
34 | term_dontaudit_use_console(dmesg_t) | ||
35 | -- | ||
36 | 1.7.9.5 | ||
37 | |||