Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM,
authorrwatson <rwatson@FreeBSD.org>
Tue, 22 Nov 2016 00:41:24 +0000 (00:41 +0000)
committerrwatson <rwatson@FreeBSD.org>
Tue, 22 Nov 2016 00:41:24 +0000 (00:41 +0000)
commit312591feddbdd5949c3bf821ebaa7f11027c4296
treeb0ab550376f8b515861bda447f54f340e61954c5
parent3f405f2e4f0582879c2f36e1a5c258e7f2dc3dc9
Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM,
always audit the file-descriptor number and vnode information for all
fnctl(2) commands, not just locking-related ones.  This was likely an
oversight in the original adaptation of this code from XNU.

MFC after: 3 days
Sponsored by: DARPA, AFRL
sys/kern/kern_descrip.c
sys/security/audit/audit_bsm.c