[PATCH] Add screens to the PRIVATE_XSELINUX set.

Eamon Walsh ewalsh at tycho.nsa.gov
Mon Aug 30 13:37:05 PDT 2010


The SELinux extension does store a security label in the screen
devPrivates.  Fixes crash caused by overwriting another private.

Signed-off-by: Eamon Walsh <ewalsh at tycho.nsa.gov>
Reported-by: Justin Mattock <justinmattock at gmail.com>
---
 dix/privates.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dix/privates.c b/dix/privates.c
index ec818d4..17e1050 100644
--- a/dix/privates.c
+++ b/dix/privates.c
@@ -71,6 +71,7 @@ static struct {
 } keys[PRIVATE_LAST];
 
 static const Bool xselinux_private[PRIVATE_LAST] = {
+    [PRIVATE_SCREEN] = TRUE,
     [PRIVATE_CLIENT] = TRUE,
     [PRIVATE_WINDOW] = TRUE,
     [PRIVATE_PIXMAP] = TRUE,
-- 
1.7.2.1




More information about the xorg-devel mailing list