[Midnightbsd-cvs] [MidnightBSD/src] aa036d: pseudofs: don't do VEXEC check in VOP_CACHEDLOOKUP
Lucas Holt
noreply at github.com
Sat Nov 14 14:59:37 EST 2020
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/src
Commit: aa036d5b36c44652c0c1da7b7f70062d84981dd1
https://github.com/MidnightBSD/src/commit/aa036d5b36c44652c0c1da7b7f70062d84981dd1
Author: Lucas Holt <luke at foolishgames.com>
Date: 2020-11-14 (Sat, 14 Nov 2020)
Changed paths:
M sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
M sys/fs/pseudofs/pseudofs_vnops.c
Log Message:
-----------
pseudofs: don't do VEXEC check in VOP_CACHEDLOOKUP
VOP_CACHEDLOOKUP should assume that the appropriate VEXEC check has been
done in the caller (vfs_cache_lookup), so it does not belong here.
zfs: light refactor to indicate cachedlookup in zfs_lookup
If we come from VOP_CACHEDLOOKUP, we must skip the VEXEC check as it will
have been done in the caller (vfs_cache_lookup). This is a part of D23247,
which may skip the earlier VEXEC check as well if the root fd was opened
with O_SEARCH.
This one required slightly more work as zfs_lookup may also be called
indirectly as VOP_LOOKUP or a couple of other places where we must do the
check.
Obtained from: FreeBSD
More information about the Midnightbsd-cvs
mailing list