git: cea301aee3e1 - releng/13.0 - Do not call nameicap_tracker_add() for dotdot case.
Konstantin Belousov
kib at FreeBSD.org
Thu Mar 4 20:08:49 UTC 2021
The branch releng/13.0 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=cea301aee3e1dc5f7006f45c5b11bcff315775e0
commit cea301aee3e1dc5f7006f45c5b11bcff315775e0
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-02-28 00:12:43 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-03-04 20:07:50 +0000
Do not call nameicap_tracker_add() for dotdot case.
Approved by: re (gjb)
(cherry picked from commit 59e749428111c029116a4302a544c7cc18b33772)
---
sys/kern/vfs_lookup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 4ddd7b63ce5c..73290e8da05f 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -1258,7 +1258,8 @@ success:
}
}
if (ndp->ni_vp != NULL) {
- nameicap_tracker_add(ndp, ndp->ni_vp);
+ if ((cnp->cn_flags & ISDOTDOT) == 0)
+ nameicap_tracker_add(ndp, ndp->ni_vp);
if ((cnp->cn_flags & (FAILIFEXISTS | ISSYMLINK)) == FAILIFEXISTS)
goto bad_eexist;
}
More information about the dev-commits-src-branches
mailing list