diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-09-22 13:13:03 -0700 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2009-10-14 19:19:19 -0400 |
commit | c4ffce4dc84a0a9d134a59b7e7765c99ed767e53 (patch) | |
tree | c49c54ff04b1d1a53e59eb2390a8da0b1b1f5f19 | |
parent | 0ff28319906eeb3f236acd72201c416ce01f2c6e (diff) |
xace: Relax permissions on XkbGetState from Read to Getattr.
This request is used to get the current keyboard group and is called from
GTK. It does not return an actual keymap (aside from modifiers) so it
should be safe to relax the permission on it. However it does return
button state information which should be controlled through a separate
pointer Read check.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
-rw-r--r-- | xkb/xkb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -554,7 +554,7 @@ ProcXkbGetState(ClientPtr client) if (!(client->xkbClientFlags&_XkbClientInitialized)) return BadAccess; - CHK_KBD_DEVICE(dev, stuff->deviceSpec, client, DixReadAccess); + CHK_KBD_DEVICE(dev, stuff->deviceSpec, client, DixGetAttrAccess); xkb= &dev->key->xkbInfo->state; bzero(&rep,sizeof(xkbGetStateReply)); |