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:
rwatson 2008-10-31 15:11:01 +00:00
parent 06bee05bb5
commit efc5b661a1

View File

@ -144,7 +144,6 @@ struct audit_pipe {
u_int64_t ap_inserts; /* Records added. */ u_int64_t ap_inserts; /* Records added. */
u_int64_t ap_reads; /* Records read. */ u_int64_t ap_reads; /* Records read. */
u_int64_t ap_drops; /* Records dropped. */ u_int64_t ap_drops; /* Records dropped. */
u_int64_t ap_truncates; /* Records too long. */
/* /*
* Fields relating to pipe interest: global masks for unmatched * 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; break;
case AUDITPIPE_GET_TRUNCATES: case AUDITPIPE_GET_TRUNCATES:
*(u_int *)data = ap->ap_truncates; *(u_int *)data = 0;
error = 0; error = 0;
break; break;