diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-09-11 14:24:58 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-10-18 11:07:43 +0800 |
commit | 36edcd0e47ea39881ae0554bc0591edc8202a52c (patch) | |
tree | fed8ad769c43196adb8d3823643f89c16b89bf36 | |
parent | 72e009ce78f2beb5915df0c568d20ed9913f76b3 (diff) | |
download | meta-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.patch | 24 | ||||
-rw-r--r-- | recipes-security/refpolicy/refpolicy_2.20120725.inc | 4 |
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 @@ | |||
1 | Subject: [PATCH] fix xconsole_device_t as a dev_node. | ||
2 | |||
3 | Upstream-Status: Inappropriate [only for Poky] | ||
4 | |||
5 | Signed-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 | |||
10 | diff --git a/policy/modules/services/xserver.te b/policy/modules/services/xserver.te | ||
11 | index 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 | -- | ||
23 | 1.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 | ||
32 | SRC_URI += "file://poky-policy-fix-xconsole_device_t-as-a-dev_node.patch \ | ||
33 | " | ||
34 | |||
31 | include refpolicy_common.inc | 35 | include refpolicy_common.inc |