From 2aa8c03917945db18e717f3f844ca79d788e3e25 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 13 Jun 2016 09:22:20 +0000 Subject: [PATCH] Implement AUE_PREAD and AUE_PWRITE BSM conversion support, eliminating console warnings when pread(2) and pwrite(2) are used with full system-call auditing enabled. We audit the same file-descriptor data for these calls as we do read(2) and write(2). Approved by: re (kib) MFC after: 3 days Sponsored by: DARPA, AFRL --- sys/security/audit/audit_bsm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c index 9f29eceb3ad0..fed111ab6935 100644 --- a/sys/security/audit/audit_bsm.c +++ b/sys/security/audit/audit_bsm.c @@ -952,6 +952,8 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau) case AUE_GETDIRENTRIESATTR: case AUE_LSEEK: case AUE_POLL: + case AUE_PREAD: + case AUE_PWRITE: case AUE_READ: case AUE_READV: case AUE_WRITE: