selinux: Don't bother relabeling resources that are being destroyed
Makes window destroy about 40x faster in Xvfb.
This commit is contained in:
parent
f028b14876
commit
b030f858f2
|
@ -1146,6 +1146,8 @@ SELinuxResourceState(CallbackListPtr *pcbl, pointer unused, pointer calldata)
|
||||||
|
|
||||||
if (rec->type != RT_WINDOW)
|
if (rec->type != RT_WINDOW)
|
||||||
return;
|
return;
|
||||||
|
if (rec->state != ResourceStateAdding)
|
||||||
|
return;
|
||||||
|
|
||||||
pWin = (WindowPtr)rec->value;
|
pWin = (WindowPtr)rec->value;
|
||||||
subj = dixLookupPrivate(&wClient(pWin)->devPrivates, subjectKey);
|
subj = dixLookupPrivate(&wClient(pWin)->devPrivates, subjectKey);
|
||||||
|
|
Loading…
Reference in New Issue