use udev_root instead of "/dev"in selinux matchpathcon_init_prefix()

Taken from Red Hat CVS:
  udev-075-selinux.patch
This commit is contained in:
Kay Sievers 2005-12-22 17:29:20 +01:00
parent caa4fd85ae
commit 1698d39857

View File

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