diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-08-16 10:57:49 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2007-08-16 10:57:49 -0400 |
commit | e89301c8790df9fc49de13dd7c7f36e5340c0c31 (patch) | |
tree | 24891cb4797d403ee740d2593b0ce1c84a32a9d2 /dix/dispatch.c | |
parent | 5bee8db003a5d552ee1d85bb6c40a3cb93bd6b2b (diff) |
xace: add hooks + new access codes: core protocol client requests
Diffstat (limited to 'dix/dispatch.c')
-rw-r--r-- | dix/dispatch.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c index 2dc32a525..30f44fb1f 100644 --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -3519,9 +3519,14 @@ ProcGetFontPath(ClientPtr client) int ProcChangeCloseDownMode(ClientPtr client) { + int rc; REQUEST(xSetCloseDownModeReq); - REQUEST_SIZE_MATCH(xSetCloseDownModeReq); + + rc = XaceHook(XACE_CLIENT_ACCESS, client, client, DixManageAccess); + if (rc != Success) + return rc; + if ((stuff->mode == AllTemporary) || (stuff->mode == RetainPermanent) || (stuff->mode == RetainTemporary)) |