Blame SOURCES/glibc-rh700507.patch

b40826
Index: glibc-2.12-2-gc4ccff1/nscd/nscd.c
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/nscd/nscd.c
b40826
+++ glibc-2.12-2-gc4ccff1/nscd/nscd.c
b40826
@@ -260,10 +260,6 @@ main (int argc, char **argv)
b40826
     /* In foreground mode we are not paranoid.  */
b40826
     paranoia = 0;
b40826
 
b40826
-  /* Start the SELinux AVC.  */
b40826
-  if (selinux_enabled)
b40826
-    nscd_avc_init ();
b40826
-
b40826
   signal (SIGINT, termination_handler);
b40826
   signal (SIGQUIT, termination_handler);
b40826
   signal (SIGTERM, termination_handler);
b40826
@@ -278,6 +274,10 @@ main (int argc, char **argv)
b40826
   /* Init databases.  */
b40826
   nscd_init ();
b40826
 
b40826
+  /* Start the SELinux AVC.  */
b40826
+  if (selinux_enabled)
b40826
+    nscd_avc_init ();
b40826
+
b40826
   /* Handle incoming requests */
b40826
   start_threads ();
b40826