Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2016 18:51:49 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r304537 - head/sys/kern
Message-ID:  <201608201851.u7KIpnSf086909@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608201851.u7KIpnSf086909>