mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 23:20:12 +01:00
xselinux: Remove synthetic bit when looking up event type.
This commit is contained in:
parent
d7db549db4
commit
660557593e
1 changed files with 2 additions and 1 deletions
|
|
@ -133,10 +133,11 @@ static pointer truep = (pointer)1;
|
|||
* Looks up the SID corresponding to the given event type
|
||||
*/
|
||||
static int
|
||||
SELinuxEventToSID(int type, SELinuxStateRec *sid_return)
|
||||
SELinuxEventToSID(unsigned type, SELinuxStateRec *sid_return)
|
||||
{
|
||||
const char *name = LookupEventName(type);
|
||||
security_context_t con;
|
||||
type &= 127;
|
||||
|
||||
if (type >= numKnownEvents) {
|
||||
/* Need to increase size of classes array */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue