summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-03-02 21:34:17 +0000
committerrwatson <rwatson@FreeBSD.org>2008-03-02 21:34:17 +0000
commitdb38a251025ba34a4c62745ee73647452fd44585 (patch)
tree24317a1e948fc8b87664d145c7945735a4e6565d /sys/security
parent3c9d4d56e68bff693a6fc1f75e1dc63bd9bce96a (diff)
downloadFreeBSD-src-db38a251025ba34a4c62745ee73647452fd44585.zip
FreeBSD-src-db38a251025ba34a4c62745ee73647452fd44585.tar.gz
Rather than copying out the full audit trigger record, which includes
a queue entry field, just copy out the unsigned int that is the trigger message. In practice, auditd always requested sizeof(unsigned int), so the extra bytes were ignored, but copying them out was not the intent. MFC after: 1 month
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_trigger.c b/sys/security/audit/audit_trigger.c
index 1cf1be2..562c450 100644
--- a/sys/security/audit/audit_trigger.c
+++ b/sys/security/audit/audit_trigger.c
@@ -113,7 +113,7 @@ audit_read(struct cdev *dev, struct uio *uio, int ioflag)
}
mtx_unlock(&audit_trigger_mtx);
if (!error) {
- error = uiomove(ti, sizeof *ti, uio);
+ error = uiomove(&ti->trigger, sizeof(ti->trigger), uio);
free(ti, M_AUDITTRIGGER);
}
return (error);
OpenPOWER on IntegriCloud