mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix link(2) auditing: use the second audit record path for the new object
name. Approved by: re (kib) MFC after: 3 days
This commit is contained in:
parent
d981a4e272
commit
c5957d6bba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195238
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user