chiark / gitweb /
optimize SELinux path match
authorHarald Hoyer <harald@redhat.com>
Tue, 6 Dec 2005 18:00:40 +0000 (19:00 +0100)
committerKay Sievers <kay.sievers@suse.de>
Tue, 6 Dec 2005 18:00:40 +0000 (19:00 +0100)
udev_selinux.c

index 6ec359e..f014ea5 100644 (file)
@@ -152,6 +152,7 @@ void selinux_init(void)
         * restoration creation purposes.
         */
        if (is_selinux_running()) {
         * restoration creation purposes.
         */
        if (is_selinux_running()) {
+               matchpathcon_init_prefix(NULL, "/dev");
                if (getfscreatecon(&prev_scontext) < 0) {
                        err("getfscreatecon failed\n");
                        prev_scontext = NULL;
                if (getfscreatecon(&prev_scontext) < 0) {
                        err("getfscreatecon failed\n");
                        prev_scontext = NULL;