mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 14:50:08 +01:00
XSELinux: Do a check for whether background "None" is allowed.
(cherry picked from commit 3bbd77ff98)
This commit is contained in:
parent
d08bb7040c
commit
98249dfa98
1 changed files with 7 additions and 0 deletions
|
|
@ -1026,6 +1026,13 @@ SELinuxResource(CallbackListPtr *pcbl, pointer unused, pointer calldata)
|
|||
rc = SELinuxDoCheck(subj, obj, class, access_mode, &auditdata);
|
||||
if (rc != Success)
|
||||
rec->status = rc;
|
||||
|
||||
/* Perform the background none check on windows */
|
||||
if (access_mode & DixCreateAccess && rec->rtype == RT_WINDOW) {
|
||||
rc = SELinuxDoCheck(subj, obj, class, DixBlendAccess, &auditdata);
|
||||
if (rc != Success)
|
||||
((WindowPtr)rec->res)->forcedBG = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue