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