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 6ec359edd4bd64d4578509876784372cde00ef28..f014ea55359d6653950a419fd33827dff76e2cf9 100644 (file)
@@ -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;