summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2016-06-13 09:22:20 +0000
committerrwatson <rwatson@FreeBSD.org>2016-06-13 09:22:20 +0000
commita898890305938b9d337f853c7d45ca5f1d4e019d (patch)
treed4c6382af39ec9097fbbe565ffdd251cc116e4b4 /sys/security
parent7e7c56668a9a869ccea84ffa94ee20ed1905103a (diff)
downloadFreeBSD-src-a898890305938b9d337f853c7d45ca5f1d4e019d.zip
FreeBSD-src-a898890305938b9d337f853c7d45ca5f1d4e019d.tar.gz
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
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_bsm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c
index 9f29ece..fed111a 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:
OpenPOWER on IntegriCloud