mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-16 03:27:49 +07:00
optimize SELinux path match
This commit is contained in:
parent
731a7d6d75
commit
65e63a710e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user