summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2007-10-27 22:28:01 +0000
committercsjp <csjp@FreeBSD.org>2007-10-27 22:28:01 +0000
commiteaecf9354fcdefa62a44d01afb8e061606d4d01a (patch)
treea4c798123e067d850b14d62d0dbb8fe8640d1661 /sys
parent2a9cc515806c61986c713946ca9bf068bee79012 (diff)
downloadFreeBSD-src-eaecf9354fcdefa62a44d01afb8e061606d4d01a.zip
FreeBSD-src-eaecf9354fcdefa62a44d01afb8e061606d4d01a.tar.gz
Make sure we are incrementing the read count for each audit pipe read.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/security/audit/audit_pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/audit/audit_pipe.c b/sys/security/audit/audit_pipe.c
index 6889c05..ce2f1df 100644
--- a/sys/security/audit/audit_pipe.c
+++ b/sys/security/audit/audit_pipe.c
@@ -934,6 +934,7 @@ audit_pipe_read(struct cdev *dev, struct uio *uio, int flag)
audit_pipe_entry_free(ape);
ap->ap_truncates++;
} while (1);
+ ap->ap_reads++;
mtx_unlock(&audit_pipe_mtx);
/*
OpenPOWER on IntegriCloud