diff options
author | Adam Jackson <ajax@redhat.com> | 2009-02-21 19:56:20 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-02-27 12:45:19 -0500 |
commit | b030f858f2f1ce1fd27a73ebf7f9ec5db541a668 (patch) | |
tree | df13c052e8dfb6fef84943a53f89bd4125a0505b /Xext/xselinux.c | |
parent | f028b14876dc536b575d4b6e1df7f37ee525acec (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.c | 2 |
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); |