ab13247
From 00fb367cffcc6dd36e5c023757414ed63e13e643 Mon Sep 17 00:00:00 2001
ab13247
From: Adam Jackson <ajax@redhat.com>
ab13247
Date: Tue, 3 Mar 2009 14:32:52 -0500
ab13247
Subject: [PATCH] Don't bother relabeling resources that are being destroyed
ab13247
ab13247
---
ab13247
 Xext/xselinux.c |    2 ++
ab13247
 1 files changed, 2 insertions(+), 0 deletions(-)
ab13247
ab13247
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
ab13247
index 6085983..f8495ea 100644
ab13247
--- a/Xext/xselinux.c
ab13247
+++ b/Xext/xselinux.c
ab13247
@@ -1150,6 +1150,8 @@ SELinuxResourceState(CallbackListPtr *pcbl, pointer unused, pointer calldata)
ab13247
 
ab13247
     if (rec->type != RT_WINDOW)
ab13247
 	return;
ab13247
+    if (rec->state != ResourceStateAdding)
ab13247
+	return;
ab13247
 
ab13247
     pWin = (WindowPtr)rec->value;
ab13247
     subj = dixLookupPrivate(&wClient(pWin)->devPrivates, subjectKey);
ab13247
-- 
ab13247
1.6.1.3
ab13247