HomeFreeBSD

tmpfs: push VEXEC check into tmpfs_lookup()

Description

tmpfs: push VEXEC check into tmpfs_lookup()

vfs_cache_lookup() has already done the appropriate VEXEC check, therefore
we must not re-check in VOP_CACHEDLOOKUP.

This fixes O_SEARCH semantics on tmpfs and removes a redundant descent into
VOP_ACCESS() in the common case.

Reported-by: arichardson (via CheriBSD Jenkins CI)
Reviewed-by: kib
MFC-after: 3 days
Differential Revision: https://reviews.freebsd.org/D28401

Details

Provenance
kevansAuthored on Jan 28 2021, 2:27 PM
Differential Revision
D28401: tmpfs: push VEXEC check into tmpfs_lookup()
Parents
rG8a51f14a7833: newvers: tweak uname to be more useful
Branches
Unknown
Tags
Unknown