summaryrefslogtreecommitdiff
path: root/dix/dispatch.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-02-12 19:59:10 -0500
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2008-02-12 19:59:10 -0500
commit0d492b2166c4026b9078ffd86d89a31ebe590be4 (patch)
tree5588d9c8aa3152abff9b8d4a920dcf963be124ea /dix/dispatch.c
parent4be69e41c07b784f75918141eead70415c0ec4a4 (diff)
XACE: Move the selection access hook to its own function.
Diffstat (limited to 'dix/dispatch.c')
-rw-r--r--dix/dispatch.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 0bca4417e..3589fba1c 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -995,8 +995,8 @@ ProcSetSelectionOwner(ClientPtr client)
{
int i = 0;
- rc = XaceHook(XACE_SELECTION_ACCESS, client, stuff->selection,
- DixSetAttrAccess);
+ rc = XaceHookSelectionAccess(client, stuff->selection,
+ DixSetAttrAccess);
if (rc != Success)
return rc;
@@ -1081,8 +1081,7 @@ ProcGetSelectionOwner(ClientPtr client)
int rc, i;
xGetSelectionOwnerReply reply;
- rc = XaceHook(XACE_SELECTION_ACCESS, client, stuff->id,
- DixGetAttrAccess);
+ rc = XaceHookSelectionAccess(client, stuff->id, DixGetAttrAccess);
if (rc != Success)
return rc;
@@ -1127,8 +1126,7 @@ ProcConvertSelection(ClientPtr client)
rc = dixLookupWindow(&pWin, stuff->requestor, client, DixSetAttrAccess);
if (rc != Success)
return rc;
- rc = XaceHook(XACE_SELECTION_ACCESS, client, stuff->selection,
- DixReadAccess);
+ rc = XaceHookSelectionAccess(client, stuff->selection, DixReadAccess);
if (rc != Success)
return rc;