summaryrefslogtreecommitdiff
path: root/Xext/xselinux.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-02-21 19:56:20 -0500
committerAdam Jackson <ajax@redhat.com>2009-02-27 12:45:19 -0500
commitb030f858f2f1ce1fd27a73ebf7f9ec5db541a668 (patch)
treedf13c052e8dfb6fef84943a53f89bd4125a0505b /Xext/xselinux.c
parentf028b14876dc536b575d4b6e1df7f37ee525acec (diff)
selinux: Don't bother relabeling resources that are being destroyed
Makes window destroy about 40x faster in Xvfb.
Diffstat (limited to 'Xext/xselinux.c')
-rw-r--r--Xext/xselinux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
index e2eeac961..6d51fa19d 100644
--- a/Xext/xselinux.c
+++ b/Xext/xselinux.c
@@ -1146,6 +1146,8 @@ SELinuxResourceState(CallbackListPtr *pcbl, pointer unused, pointer calldata)
if (rec->type != RT_WINDOW)
return;
+ if (rec->state != ResourceStateAdding)
+ return;
pWin = (WindowPtr)rec->value;
subj = dixLookupPrivate(&wClient(pWin)->devPrivates, subjectKey);