Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2008 15:11:01 +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: r184510 - head/sys/security/audit
Message-ID:  <200810311511.m9VFB1GG083690@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Fri Oct 31 15:11:01 2008
New Revision: 184510
URL: http://svn.freebsd.org/changeset/base/184510

Log:
  Since there is no longer the opportunity for record truncation, just
  return 0 if the truncation counter is queried on an audit pipe.
  
  MFC after:	2 months
  Sponsored by:	Apple, Inc.

Modified:
  head/sys/security/audit/audit_pipe.c

Modified: head/sys/security/audit/audit_pipe.c
==============================================================================
--- head/sys/security/audit/audit_pipe.c	Fri Oct 31 14:47:15 2008	(r184509)
+++ head/sys/security/audit/audit_pipe.c	Fri Oct 31 15:11:01 2008	(r184510)
@@ -144,7 +144,6 @@ struct audit_pipe {
 	u_int64_t			 ap_inserts;	/* Records added. */
 	u_int64_t			 ap_reads;	/* Records read. */
 	u_int64_t			 ap_drops;	/* Records dropped. */
-	u_int64_t			 ap_truncates;	/* Records too long. */
 
 	/*
 	 * Fields relating to pipe interest: global masks for unmatched
@@ -920,7 +919,7 @@ audit_pipe_ioctl(struct cdev *dev, u_lon
 		break;
 
 	case AUDITPIPE_GET_TRUNCATES:
-		*(u_int *)data = ap->ap_truncates;
+		*(u_int *)data = 0;
 		error = 0;
 		break;
 



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