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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to