Author: rwatson
Date: Mon Jun 13 09:22:20 2016
New Revision: 301867
URL: https://svnweb.freebsd.org/changeset/base/301867

Log:
  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

Modified:
  head/sys/security/audit/audit_bsm.c

Modified: head/sys/security/audit/audit_bsm.c
==============================================================================
--- head/sys/security/audit/audit_bsm.c Mon Jun 13 09:02:08 2016        
(r301866)
+++ head/sys/security/audit/audit_bsm.c Mon Jun 13 09:22:20 2016        
(r301867)
@@ -952,6 +952,8 @@ kaudit_to_bsm(struct kaudit_record *kar,
        case AUE_GETDIRENTRIESATTR:
        case AUE_LSEEK:
        case AUE_POLL:
+       case AUE_PREAD:
+       case AUE_PWRITE:
        case AUE_READ:
        case AUE_READV:
        case AUE_WRITE:
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to