selinux: Only activate if policy says to be an object manager
This commit is contained in:
parent
8e7facfe30
commit
283a081572
|
@ -1971,6 +1971,10 @@ SELinuxExtensionInit(INITARGS)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't init unless there's something to do */
|
||||||
|
if (!security_get_boolean_active("xserver_object_manager"))
|
||||||
|
return;
|
||||||
|
|
||||||
/* Check SELinux mode in configuration file */
|
/* Check SELinux mode in configuration file */
|
||||||
switch(selinuxEnforcingState) {
|
switch(selinuxEnforcingState) {
|
||||||
case SELINUX_MODE_DISABLED:
|
case SELINUX_MODE_DISABLED:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user