HomeFreeBSD

exec: store parent directory and hardlink name of the binary in struct proc

Description

exec: store parent directory and hardlink name of the binary in struct proc

While doing it, also move all the code to resolve pathnames and obtain
text vp and dvp, into single place. Besides simplifying the code, it
avoids spurious vnode relocks and validates the explanation why
a transient text reference on the script vnode is not harmful.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32611

Details

Provenance
kibAuthored on Oct 23 2021, 6:44 PM
Reviewer
markj
Differential Revision
D32611: exec: provide right hardlink name in AT_EXECPATH
Parents
rG0c10648fbb75: exec: provide right hardlink name in AT_EXECPATH
Branches
Unknown
Tags
Unknown