optimize SELinux path match

This commit is contained in:
Harald Hoyer 2005-12-06 19:00:40 +01:00 committed by Kay Sievers
parent 731a7d6d75
commit 65e63a710e

View 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;