aboutsummaryrefslogtreecommitdiff
path: root/nscd/nscd.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-09-02 11:13:39 +0200
committerAndreas Schwab <schwab@redhat.com>2011-11-03 14:41:38 +0100
commita9ae54a136d743103cd9e266c7d22769ea440c09 (patch)
tree3d2e47b44d6be367e58074d54d2427d1a55baeba /nscd/nscd.c
parent3d7ba52b68e4dc5c4d3eb19de436c66ed9bb2f0d (diff)
downloadglibc-a9ae54a136d743103cd9e266c7d22769ea440c09.zip
glibc-a9ae54a136d743103cd9e266c7d22769ea440c09.tar.gz
glibc-a9ae54a136d743103cd9e266c7d22769ea440c09.tar.bz2
Don't start AVC thread until credentials are installed
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r--nscd/nscd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c
index e9bb75d..be693c9 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -263,10 +263,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);
@@ -294,6 +290,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 ();