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 <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1328>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-26 19:55:15 +01:00 committed by Marge Bot
parent bb2e2eba42
commit 537293ff4e
2 changed files with 3 additions and 4 deletions

View File

@ -44,6 +44,9 @@ typedef struct {
CARD32 id;
} SELinuxListItemRec;
Bool noSELinuxExtension = FALSE;
int selinuxEnforcingState = SELINUX_MODE_DEFAULT;
/*
* Extension Dispatch
*/

View File

@ -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