mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
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:
parent
caa4fd85ae
commit
1698d39857
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user