summaryrefslogtreecommitdiff
path: root/udev_selinux.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2005-12-06 19:00:40 +0100
committerKay Sievers <kay.sievers@suse.de>2005-12-06 19:00:40 +0100
commit65e63a710e0369781c3632dd3fc95e4c72f9ab40 (patch)
tree53a71d369ffc194ae2ff991fa0fb4ca40a03da10 /udev_selinux.c
parent731a7d6d75fa412d676fd536ea282f33296f64cb (diff)
optimize SELinux path match
Diffstat (limited to 'udev_selinux.c')
-rw-r--r--udev_selinux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev_selinux.c b/udev_selinux.c
index 6ec359edd4..f014ea5535 100644
--- a/udev_selinux.c
+++ b/udev_selinux.c
@@ -152,6 +152,7 @@ void selinux_init(void)
* restoration creation purposes.
*/
if (is_selinux_running()) {
+ matchpathcon_init_prefix(NULL, "/dev");
if (getfscreatecon(&prev_scontext) < 0) {
err("getfscreatecon failed\n");
prev_scontext = NULL;