summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-09-28 15:04:33 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-09-28 15:04:33 -0400
commit50551ec693f40b91652fe4814e9fe2e1f9ab6517 (patch)
treece847a889ddc5d825713d1dbcfd30f975b1a950c /Xext
parent8b548657204000e18c7a38706a0071ae2f93159f (diff)
xace: remove obsoleted DRAWABLE_ACCESS hook.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/security.c1
-rw-r--r--Xext/xace.c10
-rw-r--r--Xext/xace.h27
-rw-r--r--Xext/xacestr.h7
-rw-r--r--Xext/xselinux.c1
5 files changed, 13 insertions, 33 deletions
diff --git a/Xext/security.c b/Xext/security.c
index fe1e48a14..ec414a0c3 100644
--- a/Xext/security.c
+++ b/Xext/security.c
@@ -1836,7 +1836,6 @@ SecurityExtensionInit(INITARGS)
XaceRC(XACE_RESOURCE_ACCESS, SecurityCheckResourceIDAccess, NULL);
XaceRC(XACE_DEVICE_ACCESS, SecurityCheckDeviceAccess, NULL);
XaceRC(XACE_PROPERTY_ACCESS, SecurityCheckPropertyAccess, NULL);
- XaceRC(XACE_DRAWABLE_ACCESS, SecurityCheckDrawableAccess, NULL);
XaceRC(XACE_MAP_ACCESS, SecurityCheckMapAccess, NULL);
XaceRC(XACE_EXT_DISPATCH, SecurityCheckExtAccess, NULL);
XaceRC(XACE_EXT_ACCESS, SecurityCheckExtAccess, NULL);
diff --git a/Xext/xace.c b/Xext/xace.c
index 92f0e4048..3de259f71 100644
--- a/Xext/xace.c
+++ b/Xext/xace.c
@@ -105,16 +105,6 @@ int XaceHook(int hook, ...)
prv = &rec.status;
break;
}
- case XACE_DRAWABLE_ACCESS: {
- XaceDrawableAccessRec rec = {
- va_arg(ap, ClientPtr),
- va_arg(ap, DrawablePtr),
- Success /* default allow */
- };
- calldata = &rec;
- prv = &rec.status;
- break;
- }
case XACE_SEND_ACCESS: {
XaceSendAccessRec rec = {
va_arg(ap, ClientPtr),
diff --git a/Xext/xace.h b/Xext/xace.h
index c1fc0714f..e9fe9f31b 100644
--- a/Xext/xace.h
+++ b/Xext/xace.h
@@ -45,20 +45,19 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define XACE_RESOURCE_ACCESS 2
#define XACE_DEVICE_ACCESS 3
#define XACE_PROPERTY_ACCESS 4
-#define XACE_DRAWABLE_ACCESS 5
-#define XACE_SEND_ACCESS 6
-#define XACE_RECEIVE_ACCESS 7
-#define XACE_CLIENT_ACCESS 8
-#define XACE_EXT_ACCESS 9
-#define XACE_SERVER_ACCESS 10
-#define XACE_SELECTION_ACCESS 11
-#define XACE_SCREEN_ACCESS 12
-#define XACE_SCREENSAVER_ACCESS 13
-#define XACE_AUTH_AVAIL 14
-#define XACE_KEY_AVAIL 15
-#define XACE_AUDIT_BEGIN 16
-#define XACE_AUDIT_END 17
-#define XACE_NUM_HOOKS 18
+#define XACE_SEND_ACCESS 5
+#define XACE_RECEIVE_ACCESS 6
+#define XACE_CLIENT_ACCESS 7
+#define XACE_EXT_ACCESS 8
+#define XACE_SERVER_ACCESS 9
+#define XACE_SELECTION_ACCESS 10
+#define XACE_SCREEN_ACCESS 11
+#define XACE_SCREENSAVER_ACCESS 12
+#define XACE_AUTH_AVAIL 13
+#define XACE_KEY_AVAIL 14
+#define XACE_AUDIT_BEGIN 15
+#define XACE_AUDIT_END 16
+#define XACE_NUM_HOOKS 17
extern CallbackListPtr XaceHooks[XACE_NUM_HOOKS];
diff --git a/Xext/xacestr.h b/Xext/xacestr.h
index e12a52c9a..1dae4d6b5 100644
--- a/Xext/xacestr.h
+++ b/Xext/xacestr.h
@@ -65,13 +65,6 @@ typedef struct {
int status;
} XacePropertyAccessRec;
-/* XACE_DRAWABLE_ACCESS */
-typedef struct {
- ClientPtr client;
- DrawablePtr pDraw;
- int status;
-} XaceDrawableAccessRec;
-
/* XACE_SEND_ACCESS */
typedef struct {
ClientPtr client;
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
index 1ffd79d79..bc86a3294 100644
--- a/Xext/xselinux.c
+++ b/Xext/xselinux.c
@@ -1389,7 +1389,6 @@ XSELinuxExtensionInit(INITARGS)
XaceRegisterCallback(XACE_RESOURCE_ACCESS, XSELinuxResLookup, NULL);
XaceRegisterCallback(XACE_MAP_ACCESS, XSELinuxMap, NULL);
XaceRegisterCallback(XACE_SERVER_ACCESS, XSELinuxServer, NULL);
- XaceRegisterCallback(XACE_DRAWABLE_ACCESS, XSELinuxDrawable, NULL);
XaceRegisterCallback(XACE_PROPERTY_ACCESS, XSELinuxProperty, NULL);
/* XaceRegisterCallback(XACE_DECLARE_EXT_SECURE, XSELinuxDeclare, NULL);
XaceRegisterCallback(XACE_DEVICE_ACCESS, XSELinuxDevice, NULL); */