mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
Don't start AVC thread until credentials are installed
This commit is contained in:
parent
3d7ba52b68
commit
a9ae54a136
@ -1,5 +1,8 @@
|
||||
2011-11-03 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* nscd/nscd.c (main): Don't start AVC thread until credentials are
|
||||
installed.
|
||||
|
||||
* nss/makedb.c (set_file_creation_context): Do nothing if SELinux
|
||||
is disabled.
|
||||
|
||||
|
@ -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 ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user