Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Apr 2012 11:05:22 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234034 - head/contrib/openbsm/libauditd
Message-ID:  <201204081105.q38B5MGf009110@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sun Apr  8 11:05:22 2012
New Revision: 234034
URL: http://svn.freebsd.org/changeset/base/234034

Log:
  Merge a local fix to OpenBSM's libauditd to avoid a directory descriptor
  leak when iterating over possible audit trail directories.  This fix will
  be merged upstream in an identical form, but hasn't yet appeared in an
  OpenBSM release.
  
  Submitted by:	guido
  Obtained from:	TrustedBSD Project
  MFC after:	3 days

Modified:
  head/contrib/openbsm/libauditd/auditd_lib.c

Modified: head/contrib/openbsm/libauditd/auditd_lib.c
==============================================================================
--- head/contrib/openbsm/libauditd/auditd_lib.c	Sun Apr  8 11:04:08 2012	(r234033)
+++ head/contrib/openbsm/libauditd/auditd_lib.c	Sun Apr  8 11:05:22 2012	(r234034)
@@ -520,6 +520,7 @@ auditd_expire_trails(int (*warn_expired)
 				}
 
 		}
+		closedir(dirp);
 	}
 
 	oldest_time = current_time - expire_age;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204081105.q38B5MGf009110>