xselinux: Stop special-casing QueryPointer access checks.
XACE has been changed to not return BadAccess on device read failures.
Thus, no need for this workaround code.
[Backport to 1.7]
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
(cherry-picked from commit 0ff2831990
)
This commit is contained in:
parent
7d3f8ce505
commit
c1a861eedf
|
@ -686,17 +686,6 @@ SELinuxDevice(CallbackListPtr *pcbl, pointer unused, pointer calldata)
|
|||
}
|
||||
}
|
||||
|
||||
/* XXX only check read permission on XQueryKeymap */
|
||||
/* This is to allow the numerous apps that call XQueryPointer to work */
|
||||
if (rec->access_mode & DixReadAccess) {
|
||||
ClientPtr client = rec->client;
|
||||
REQUEST(xReq);
|
||||
if (stuff && stuff->reqType != X_QueryKeymap) {
|
||||
rec->access_mode &= ~DixReadAccess;
|
||||
rec->access_mode |= DixGetAttrAccess;
|
||||
}
|
||||
}
|
||||
|
||||
rc = SELinuxDoCheck(subj, obj, SECCLASS_X_DEVICE, rec->access_mode,
|
||||
&auditdata);
|
||||
if (rc != Success)
|
||||
|
|
Loading…
Reference in New Issue