summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-09-11 14:24:58 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-10-18 11:07:43 +0800
commit36edcd0e47ea39881ae0554bc0591edc8202a52c (patch)
treefed8ad769c43196adb8d3823643f89c16b89bf36
parent72e009ce78f2beb5915df0c568d20ed9913f76b3 (diff)
downloadmeta-selinux-36edcd0e47ea39881ae0554bc0591edc8202a52c.tar.gz
refpolicy: xconsole_device_t as a dev_node
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/refpolicy/refpolicy-2.20120725/poky-policy-fix-xconsole_device_t-as-a-dev_node.patch24
-rw-r--r--recipes-security/refpolicy/refpolicy_2.20120725.inc4
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20120725/poky-policy-fix-xconsole_device_t-as-a-dev_node.patch b/recipes-security/refpolicy/refpolicy-2.20120725/poky-policy-fix-xconsole_device_t-as-a-dev_node.patch
new file mode 100644
index 0000000..87ac790
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy-2.20120725/poky-policy-fix-xconsole_device_t-as-a-dev_node.patch
@@ -0,0 +1,24 @@
1Subject: [PATCH] fix xconsole_device_t as a dev_node.
2
3Upstream-Status: Inappropriate [only for Poky]
4
5Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
6---
7 policy/modules/services/xserver.te | 1 +
8 1 files changed, 1 insertions(+), 0 deletions(-)
9
10diff --git a/policy/modules/services/xserver.te b/policy/modules/services/xserver.te
11index d40f750..5bb97e9 100644
12--- a/policy/modules/services/xserver.te
13+++ b/policy/modules/services/xserver.te
14@@ -151,6 +151,7 @@ userdom_user_tmp_file(xauth_tmp_t)
15 # this is not actually a device, its a pipe
16 type xconsole_device_t;
17 files_type(xconsole_device_t)
18+dev_node(xconsole_device_t)
19 fs_associate_tmpfs(xconsole_device_t)
20 files_associate_tmp(xconsole_device_t)
21
22--
231.7.5.4
24
diff --git a/recipes-security/refpolicy/refpolicy_2.20120725.inc b/recipes-security/refpolicy/refpolicy_2.20120725.inc
index 3582ddf..54a571a 100644
--- a/recipes-security/refpolicy/refpolicy_2.20120725.inc
+++ b/recipes-security/refpolicy/refpolicy_2.20120725.inc
@@ -28,4 +28,8 @@ SRC_URI += "file://poky-policy-add-syslogd_t-to-trusted-object.patch \
28 file://poky-policy-fix-new-SELINUXMNT-in-sys.patch \ 28 file://poky-policy-fix-new-SELINUXMNT-in-sys.patch \
29 " 29 "
30 30
31# Other policy fixes
32SRC_URI += "file://poky-policy-fix-xconsole_device_t-as-a-dev_node.patch \
33 "
34
31include refpolicy_common.inc 35include refpolicy_common.inc