diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-07-01 13:22:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-07-01 13:22:08 +0000 |
commit | 0e50a12ccd2315f8904f598d5e0161af368f1dd5 (patch) | |
tree | 71b0be9470034de6f6179fcd16f40fbd5306c360 /sys/kern | |
parent | 39f3d3385b07882bd820794eb024909ad17342a7 (diff) | |
download | FreeBSD-src-0e50a12ccd2315f8904f598d5e0161af368f1dd5.zip FreeBSD-src-0e50a12ccd2315f8904f598d5e0161af368f1dd5.tar.gz |
Fix link(2) auditing: use the second audit record path for the new object
name.
Approved by: re (kib)
MFC after: 3 days
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 496cecf..f3d21e9 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1583,7 +1583,7 @@ kern_linkat(struct thread *td, int fd1, int fd2, char *path1, char *path2, 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); |