HomeFreeBSD

vfs: stop duplicating vnode work in audit during path lookup

Description

vfs: stop duplicating vnode work in audit during path lookup

Duplicating the work was putting an avoidable requirement that the filedesc
lock is held across the entire operation (otherwise by the time audit reads
vnode pointers another thread in the same process can chdir somewhere else,
making audit log things using different vnode than the one which will be
used for actual lookup).

Do the obvious thing and pass down vnodes which will be used.

Details

Provenance
mjgAuthored on
Parents
rS358191: audit: provide audit_canon_path variant which accepts vnodes
Branches
Unknown
Tags
Unknown