From owner-svn-src-head@FreeBSD.ORG Wed Jul 1 13:22:09 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CAA4106566C; Wed, 1 Jul 2009 13:22:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2EA8FC13; Wed, 1 Jul 2009 13:22:09 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n61DM9Ln013758; Wed, 1 Jul 2009 13:22:09 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n61DM8fg013756; Wed, 1 Jul 2009 13:22:08 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <200907011322.n61DM8fg013756@svn.freebsd.org> From: Robert Watson Date: Wed, 1 Jul 2009 13:22:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195238 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 13:22:09 -0000 Author: rwatson Date: Wed Jul 1 13:22:08 2009 New Revision: 195238 URL: http://svn.freebsd.org/changeset/base/195238 Log: Fix link(2) auditing: use the second audit record path for the new object name. Approved by: re (kib) MFC after: 3 days Modified: head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/vfs_syscalls.c ============================================================================== --- head/sys/kern/vfs_syscalls.c Wed Jul 1 13:07:02 2009 (r195237) +++ head/sys/kern/vfs_syscalls.c Wed Jul 1 13:22:08 2009 (r195238) @@ -1583,7 +1583,7 @@ kern_linkat(struct thread *td, int fd1, VFS_UNLOCK_GIANT(vfslocked); return (error); } - NDINIT_AT(&nd, CREATE, LOCKPARENT | SAVENAME | MPSAFE | AUDITVNODE1, + NDINIT_AT(&nd, CREATE, LOCKPARENT | SAVENAME | MPSAFE | AUDITVNODE2, segflg, path2, fd2, td); if ((error = namei(&nd)) == 0) { lvfslocked = NDHASGIANT(&nd);