diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-02-26 20:04:56 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-25 19:40:04 +0000 |
commit | a57b449485912f908608b6af2ff0ac1342dec087 (patch) | |
tree | 821e63051e6f32e2caf8e9e9a8514dc80a96ca6c | |
parent | 537293ff4ec2075efdfb69af8b7ce630e17ce88e (diff) |
include: unpexport SELINUX_* consts from include/global.h
globals.h shouldn't be cluttered with extension specific things, that
aren't even used by external modules/drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1328>
-rw-r--r-- | Xext/xselinux.h | 8 | ||||
-rw-r--r-- | include/globals.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Xext/xselinux.h b/Xext/xselinux.h index 5be7088c8..52e720fd7 100644 --- a/Xext/xselinux.h +++ b/Xext/xselinux.h @@ -136,4 +136,12 @@ typedef struct { CARD32 pad6; } SELinuxListItemsReply; +#ifdef XSELINUX +#define SELINUX_MODE_DEFAULT 0 +#define SELINUX_MODE_DISABLED 1 +#define SELINUX_MODE_PERMISSIVE 2 +#define SELINUX_MODE_ENFORCING 3 +extern int selinuxEnforcingState; +#endif + #endif /* _XSELINUX_H */ diff --git a/include/globals.h b/include/globals.h index 341ce832c..887e788c8 100644 --- a/include/globals.h +++ b/include/globals.h @@ -34,12 +34,4 @@ extern _X_EXPORT sig_atomic_t inSignalContext; extern _X_EXPORT Bool PanoramiXExtensionDisabledHack; #endif -#ifdef XSELINUX -#define SELINUX_MODE_DEFAULT 0 -#define SELINUX_MODE_DISABLED 1 -#define SELINUX_MODE_PERMISSIVE 2 -#define SELINUX_MODE_ENFORCING 3 -extern _X_EXPORT int selinuxEnforcingState; -#endif - #endif /* !_XSERV_GLOBAL_H_ */ |