mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 12:30:05 +01:00
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>
(cherry picked from commit c4ffce4dc8)
This commit is contained in:
parent
c1a861eedf
commit
4814532133
1 changed files with 1 additions and 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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue