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