chiark / gitweb /
use udev_root instead of "/dev"in selinux matchpathcon_init_prefix()
authorKay Sievers <kay.sievers@suse.de>
Thu, 22 Dec 2005 16:29:20 +0000 (17:29 +0100)
committerKay Sievers <kay.sievers@suse.de>
Thu, 22 Dec 2005 16:29:20 +0000 (17:29 +0100)
Taken from Red Hat CVS:
  udev-075-selinux.patch

udev_selinux.c

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