summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy-2.20140311/poky-fc-udevd.patch
blob: c6c19bea00e1e15f70d412033bdaadbf84f5dd22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 025bd3c77d3eeb0e316413bf7e6353f1ccd7f6b2 Mon Sep 17 00:00:00 2001
From: Wenzong Fan <wenzong.fan@windriver.com>
Date: Sat, 25 Jan 2014 23:40:05 -0500
Subject: [PATCH] refpolicy: fix real path for udevd/udevadm

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 policy/modules/system/udev.fc |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc
index 40928d8..491bb23 100644
--- a/policy/modules/system/udev.fc
+++ b/policy/modules/system/udev.fc
@@ -10,6 +10,7 @@
 /etc/udev/scripts/.+ --	gen_context(system_u:object_r:udev_helper_exec_t,s0)
 
 /lib/udev/udev-acl --	gen_context(system_u:object_r:udev_exec_t,s0)
+/lib/udev/udevd    --	gen_context(system_u:object_r:udev_exec_t,s0)
 
 ifdef(`distro_debian',`
 /lib/udev/create_static_nodes -- gen_context(system_u:object_r:udev_exec_t,s0)
@@ -27,6 +28,7 @@ ifdef(`distro_redhat',`
 ')
 
 /usr/bin/udevinfo --	gen_context(system_u:object_r:udev_exec_t,s0)
+/usr/bin/udevadm  --	gen_context(system_u:object_r:udev_exec_t,s0)
 
 /usr/lib/systemd/systemd-udevd -- gen_context(system_u:object_r:udev_exec_t,s0)
 
-- 
1.7.9.5