Date: Wed, 1 Jul 2009 13:22:08 +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: r195238 - head/sys/kern Message-ID: <200907011322.n61DM8fg013756@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907011322.n61DM8fg013756>