about summary refs log tree commit diff
path: root/nscd/selinux.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-05-15 20:48:08 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-15 20:48:08 -0700
commit9e471dad8e173806cbbfb704875d5ae40e36fa34 (patch)
treeebfa781022fb62ee9b008d302d8ab33ff68a20ad /nscd/selinux.c
parent9437b427cec6266abd303983848549a5c4ba0d0a (diff)
downloadglibc-9e471dad8e173806cbbfb704875d5ae40e36fa34.tar.gz
glibc-9e471dad8e173806cbbfb704875d5ae40e36fa34.tar.xz
glibc-9e471dad8e173806cbbfb704875d5ae40e36fa34.zip
Don't try to cleanup libselinux and libaudit.
Because we are not shutting down the other threads first another
thread might work on a query before the process shuts down.  In this
case the now uninitialized libselinux and libaudit might be used.
Just don't free the resources.  It's not necessary anyway because
the process is about to terminate.
Diffstat (limited to 'nscd/selinux.c')
-rw-r--r--nscd/selinux.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/nscd/selinux.c b/nscd/selinux.c
index 9a167ec14d..e07a454bf8 100644
--- a/nscd/selinux.c
+++ b/nscd/selinux.c
@@ -1,5 +1,5 @@
 /* SELinux access controls for nscd.
-   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Matthew Rickard <mjricka@epoch.ncsc.mil>, 2004.
 
@@ -418,15 +418,4 @@ nscd_avc_print_stats (struct avc_cache_stats *cstats)
 	  cstats->cav_probes, cstats->cav_misses);
 }
 
-
-/* Clean up the AVC before exiting.  */
-void
-nscd_avc_destroy (void)
-{
-  avc_destroy ();
-#ifdef HAVE_LIBAUDIT
-  audit_close (audit_fd);
-#endif
-}
-
 #endif /* HAVE_SELINUX */