HomeFreeBSD

namei: Reset the lookup to start from the real root for abs symlink target

Description

namei: Reset the lookup to start from the real root for abs symlink target

Since fd745e1d Linux ABI specifies alternative root directory to reroot
lookups. First, an attempt is made to lookup the file in /ABI/original-path.
If that fails, the lookup is done in /original-path. In case of lookup
symbolic link with leading / in target namei() fails due to reroot reloads
original file name.
To avoid this handle restart in a special maner, without origin path name
reloading.

Reported by: Goran Mekić, Vincent Milum Jr
Tested by: Goran Mekić
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D40479

Details

Provenance
dchaginAuthored on Jun 13 2023, 12:24 PM
Reviewer
kib
Differential Revision
D40479: namei: Reset the lookup to start from the real root for abs symlink target
Parents
rG861abdadf9db: namei: Add a comment explaining ISRESTARTED flag
Branches
Unknown
Tags
Unknown