From 537293ff4ec2075efdfb69af8b7ce630e17ce88e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 26 Feb 2024 19:55:15 +0100 Subject: [PATCH] os: move SELinux enforcement state to the extension Those fields are better off in the extension instead of the OS layer. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- Xext/xselinux_ext.c | 3 +++ os/utils.c | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Xext/xselinux_ext.c b/Xext/xselinux_ext.c index 99501eeef..321620c11 100644 --- a/Xext/xselinux_ext.c +++ b/Xext/xselinux_ext.c @@ -44,6 +44,9 @@ typedef struct { CARD32 id; } SELinuxListItemRec; +Bool noSELinuxExtension = FALSE; +int selinuxEnforcingState = SELINUX_MODE_DEFAULT; + /* * Extension Dispatch */ diff --git a/os/utils.c b/os/utils.c index 9173fcbf2..df56b5b9b 100644 --- a/os/utils.c +++ b/os/utils.c @@ -168,10 +168,6 @@ Bool noXFixesExtension = FALSE; /* Xinerama is disabled by default unless enabled via +xinerama */ Bool noPanoramiXExtension = TRUE; #endif -#ifdef XSELINUX -Bool noSELinuxExtension = FALSE; -int selinuxEnforcingState = SELINUX_MODE_DEFAULT; -#endif #ifdef XV Bool noXvExtension = FALSE; #endif