]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set ISOPEN in namei flags when opening executable interpreters.
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 3 Aug 2019 01:02:52 +0000 (01:02 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Sat, 3 Aug 2019 01:02:52 +0000 (01:02 +0000)
commitf422bc30926c9febfd83df43ff492f38f071fd93
tree9773cb3b565512a5ce776b55697f92c94df4fb81
parentdfb39567a2649def493b71714a4e76db1a92d5d8
Set ISOPEN in namei flags when opening executable interpreters.

These vnodes are explicitly opened via VOP_OPEN via
exec_check_permissions identical to the main exectuable image.
Setting ISOPEN allows filesystems to perform suitable checks in
VOP_LOOKUP (e.g. close-to-open consistency in the NFS client).

Reviewed by: kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D21129
sys/kern/imgact_elf.c
sys/kern/kern_exec.c