diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2014-01-08 21:33:24 -0500 |
---|---|---|
committer | Mark Hatle <mark.hatle@windriver.com> | 2014-01-10 14:55:41 -0600 |
commit | 3f6573f773ce0c488bcd1a67a7f74cd83e0cd14c (patch) | |
tree | 7427478952318e2e8849d9e662038952add1d726 | |
parent | 725dcddfc25609f5280754c9c4a6d36602af9944 (diff) | |
download | meta-selinux-3f6573f773ce0c488bcd1a67a7f74cd83e0cd14c.tar.gz |
refpolicy: fix real path for udevd
In Yocto the real path for udevd is /lib/udev/udevd, this patch fixes
the init issues like:
udevd[87]: setfilecon /dev/vcsa2 failed: Operation not permitted
udevd[89]: setfilecon /dev/fb0 failed: Operation not permitted
(From meta-selinux master rev: d226887b909709ddcece246ae084208588126879)
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-udevd.patch | 27 | ||||
-rw-r--r-- | recipes-security/refpolicy/refpolicy_2.20130424.inc | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-udevd.patch b/recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-udevd.patch new file mode 100644 index 0000000..d6540a9 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-udevd.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 86fd93b15b97042bcf5ff1b2d1228e7d64b8cfd1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Tue, 7 Jan 2014 22:22:00 -0500 | ||
4 | Subject: [PATCH] refpolicy: fix real path for udevd | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
9 | --- | ||
10 | policy/modules/system/udev.fc | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc | ||
14 | index 40928d8..36d471d 100644 | ||
15 | --- a/policy/modules/system/udev.fc | ||
16 | +++ b/policy/modules/system/udev.fc | ||
17 | @@ -10,6 +10,7 @@ | ||
18 | /etc/udev/scripts/.+ -- gen_context(system_u:object_r:udev_helper_exec_t,s0) | ||
19 | |||
20 | /lib/udev/udev-acl -- gen_context(system_u:object_r:udev_exec_t,s0) | ||
21 | +/lib/udev/udevd -- gen_context(system_u:object_r:udev_exec_t,s0) | ||
22 | |||
23 | ifdef(`distro_debian',` | ||
24 | /lib/udev/create_static_nodes -- gen_context(system_u:object_r:udev_exec_t,s0) | ||
25 | -- | ||
26 | 1.7.9.5 | ||
27 | |||
diff --git a/recipes-security/refpolicy/refpolicy_2.20130424.inc b/recipes-security/refpolicy/refpolicy_2.20130424.inc index 6871813..cfeeaed 100644 --- a/recipes-security/refpolicy/refpolicy_2.20130424.inc +++ b/recipes-security/refpolicy/refpolicy_2.20130424.inc | |||
@@ -27,6 +27,7 @@ SRC_URI += "file://poky-fc-subs_dist.patch \ | |||
27 | file://poky-fc-ssh.patch \ | 27 | file://poky-fc-ssh.patch \ |
28 | file://poky-fc-su.patch \ | 28 | file://poky-fc-su.patch \ |
29 | file://poky-fc-sysnetwork.patch \ | 29 | file://poky-fc-sysnetwork.patch \ |
30 | file://poky-fc-udevd.patch \ | ||
30 | " | 31 | " |
31 | 32 | ||
32 | # Specific policy for Poky | 33 | # Specific policy for Poky |