From c7e18beb3c87eb1ada9b21c4ffacd11c1939c087 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Mon, 5 Nov 2007 15:01:13 -0500 Subject: xselinux: Register SELinux extension protocol names. --- Xext/xselinux.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Xext/xselinux.c b/Xext/xselinux.c index 946e5b944..f6d1dcd4b 100644 --- a/Xext/xselinux.c +++ b/Xext/xselinux.c @@ -1395,4 +1395,28 @@ XSELinuxExtensionInit(INITARGS) /* Label objects that were created before we could register ourself */ SELinuxLabelInitial(); + + /* Add names to registry */ + RegisterRequestName(X_SELinuxQueryVersion, 0, + XSELINUX_EXTENSION_NAME ":SELinuxQueryVersion"); + RegisterRequestName(X_SELinuxSetSelectionManager, 0, + XSELINUX_EXTENSION_NAME ":SELinuxSetSelectionManager"); + RegisterRequestName(X_SELinuxGetSelectionManager, 0, + XSELINUX_EXTENSION_NAME ":SELinuxGetSelectionManager"); + RegisterRequestName(X_SELinuxSetDeviceContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxSetDeviceContext"); + RegisterRequestName(X_SELinuxGetDeviceContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxGetDeviceContext"); + RegisterRequestName(X_SELinuxSetPropertyCreateContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxSetPropertyCreateContext"); + RegisterRequestName(X_SELinuxGetPropertyCreateContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxGetPropertyCreateContext"); + RegisterRequestName(X_SELinuxGetPropertyContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxGetPropertyContext"); + RegisterRequestName(X_SELinuxSetWindowCreateContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxSetWindowCreateContext"); + RegisterRequestName(X_SELinuxGetWindowCreateContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxGetWindowCreateContext"); + RegisterRequestName(X_SELinuxGetWindowContext, 0, + XSELINUX_EXTENSION_NAME ":SELinuxGetWindowContext"); } -- cgit v1.2.3