diff --git a/Xext/xselinux.c b/Xext/xselinux.c index dfeef2f21..4a1fe004b 100644 --- a/Xext/xselinux.c +++ b/Xext/xselinux.c @@ -1971,6 +1971,10 @@ SELinuxExtensionInit(INITARGS) 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 */ switch(selinuxEnforcingState) { case SELINUX_MODE_DISABLED: