svn commit: r304537 - head/sys/kern

Robert Watson rwatson at FreeBSD.org
Sat Aug 20 18:51:50 UTC 2016


Author: rwatson
Date: Sat Aug 20 18:51:48 2016
New Revision: 304537
URL: https://svnweb.freebsd.org/changeset/base/304537

Log:
  Audit additional vnode information in the implementation of the
  ftruncate(2) system call.  This was not required by the Common
  Criteria, which needed only open-time audit.
  
  MFC after:	2 weeks
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/kern/vfs_vnops.c

Modified: head/sys/kern/vfs_vnops.c
==============================================================================
--- head/sys/kern/vfs_vnops.c	Sat Aug 20 18:45:25 2016	(r304536)
+++ head/sys/kern/vfs_vnops.c	Sat Aug 20 18:51:48 2016	(r304537)
@@ -1302,6 +1302,7 @@ vn_truncate(struct file *fp, off_t lengt
 	if (error)
 		goto out1;
 	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
+	AUDIT_ARG_VNODE1(vp);
 	if (vp->v_type == VDIR) {
 		error = EISDIR;
 		goto out;


More information about the svn-src-head mailing list