0504193
From 6852b40518a70a884ee1369b6cf5fafe0faedfdb Mon Sep 17 00:00:00 2001
0504193
From: Adam Jackson <ajax@redhat.com>
0504193
Date: Sun, 8 Feb 2009 02:08:46 -0500
0504193
Subject: [PATCH] Additional debugging for selinux failures
0504193
0504193
Apropos of bug #482924
0504193
---
0504193
 Xext/xselinux.c |    2 +-
0504193
 1 files changed, 1 insertions(+), 1 deletions(-)
0504193
0504193
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
0504193
index 93ea05b..8e026be 100644
0504193
--- a/Xext/xselinux.c
0504193
+++ b/Xext/xselinux.c
0504193
@@ -1977,7 +1977,7 @@ SELinuxExtensionInit(INITARGS)
0504193
 	    ErrorF("SELinux: Invalid object class mapping, disabling SELinux support.\n");
0504193
 	    return;
0504193
 	}
0504193
-	FatalError("SELinux: Failed to set up security class mapping\n");
0504193
+	FatalError("SELinux: Failed to set up security class mapping, %s\n", strerror(errno));
0504193
     }
0504193
 
0504193
     if (avc_open(&avc_option, 1) < 0)
0504193
-- 
0504193
1.6.1.2
0504193