chiark / gitweb /
optimize SELinux path match
[elogind.git] / 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;