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.
This commit is contained in:
Robert Watson 2008-10-31 15:11:01 +00:00
parent c2911a7ac0
commit 1a0edb10ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184510

View File

@ -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_long cmd, caddr_t data, int flag,
break;
case AUDITPIPE_GET_TRUNCATES:
*(u_int *)data = ap->ap_truncates;
*(u_int *)data = 0;
error = 0;
break;