summaryrefslogtreecommitdiffstats
path: root/recipes-security
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2014-05-13 06:01:13 -0400
committerMark Hatle <mark.hatle@windriver.com>2014-06-02 09:16:10 -0500
commit623ee2d0f2ac072f62bc3d30eb828998e9315a90 (patch)
tree7cd16a0f4f5d8ba6c6c3b7f9d5022e4c1dba54a2 /recipes-security
parentd562aac270044dc1b5675b8f0730a800e85b0c44 (diff)
downloadmeta-selinux-623ee2d0f2ac072f62bc3d30eb828998e9315a90.tar.gz
refpolicy: Allow udev the block_suspend capability
Fix the avc denied issue: type=1400 audit(1399440994.656:14): avc: denied { block_suspend } for pid=80 comm="udevd" capability=36 scontext=system_u:system_r:udev_t:s0-s15:c0.c1023 tcontext=system_u:system_r:udev_t:s0-s15:c0.c1023 tclass=capability2 The patch is backported from upstream Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'recipes-security')
-rw-r--r--recipes-security/refpolicy/refpolicy-2.20130424/Allow-udev-the-block_suspend-capability.patch25
-rw-r--r--recipes-security/refpolicy/refpolicy_2.20130424.inc1
2 files changed, 26 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20130424/Allow-udev-the-block_suspend-capability.patch b/recipes-security/refpolicy/refpolicy-2.20130424/Allow-udev-the-block_suspend-capability.patch
new file mode 100644
index 0000000..3c6a979
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy-2.20130424/Allow-udev-the-block_suspend-capability.patch
@@ -0,0 +1,25 @@
1Allow udev the block_suspend capability
2
3Upstream-Status: backport
4upstream commit: 5905067f2acf710ffbb13ba32575e6316619ddd8
5
6Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
7---
8 policy/modules/system/udev.te | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/policy/modules/system/udev.te b/policy/modules/system/udev.te
12index 90e4ab3..efe6c02 100644
13--- a/policy/modules/system/udev.te
14+++ b/policy/modules/system/udev.te
15@@ -39,6 +39,7 @@ ifdef(`enable_mcs',`
16
17 allow udev_t self:capability { chown dac_override dac_read_search fowner fsetid sys_admin mknod net_raw net_admin sys_nice sys_rawio sys_resource setuid setgid sys_nice sys_ptrace };
18 dontaudit udev_t self:capability sys_tty_config;
19+allow udev_t self:capability2 block_suspend;
20 allow udev_t self:process ~{ setcurrent setexec setfscreate setrlimit execmem execstack execheap };
21 allow udev_t self:process { execmem setfscreate };
22 allow udev_t self:fd use;
23--
241.7.9.5
25
diff --git a/recipes-security/refpolicy/refpolicy_2.20130424.inc b/recipes-security/refpolicy/refpolicy_2.20130424.inc
index 5dbb2dc..0e7419d 100644
--- a/recipes-security/refpolicy/refpolicy_2.20130424.inc
+++ b/recipes-security/refpolicy/refpolicy_2.20130424.inc
@@ -61,6 +61,7 @@ SRC_URI += "file://poky-policy-fix-xconsole_device_t-as-a-dev_node.patch \
61# Backport from upstream 61# Backport from upstream
62SRC_URI += "file://Allow-ping-to-get-set-capabilities.patch \ 62SRC_URI += "file://Allow-ping-to-get-set-capabilities.patch \
63 file://filesystem-associate-tmpfs_t-shm-to-device_t-devtmpf.patch \ 63 file://filesystem-associate-tmpfs_t-shm-to-device_t-devtmpf.patch \
64 file://Allow-udev-the-block_suspend-capability.patch \
64 " 65 "
65 66
66include refpolicy_common.inc 67include refpolicy_common.inc