From: Harald Hoyer Date: Tue, 6 Dec 2005 18:00:40 +0000 (+0100) Subject: optimize SELinux path match X-Git-Tag: 174~2431 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=65e63a710e0369781c3632dd3fc95e4c72f9ab40 optimize SELinux path match --- diff --git a/udev_selinux.c b/udev_selinux.c index 6ec359edd..f014ea553 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;