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:
parent
06bee05bb5
commit
efc5b661a1
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user