]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 328909: Always give ELF brands a chance to veto a match.
authorjhb <jhb@FreeBSD.org>
Fri, 23 Mar 2018 19:30:00 +0000 (19:30 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 23 Mar 2018 19:30:00 +0000 (19:30 +0000)
commit3392884117e3bf4bfcd14d9576e8c6177330caa4
tree5d2b99c4a24afd0b6f4e24beddeb720435a7adfa
parent8fda170a4e89ab97b68ae1659194c5ad8369d7c6
MFC 328909: Always give ELF brands a chance to veto a match.

If a brand provides a header_supported hook, check it when trying to
find a brand based on a matching interpreter as well as in the final
loop for the fallback brand. Previously a brand might reject a binary
via a header_supported hook in one of the earlier loops, but still be
chosen by one of these later loops.

Sponsored by: DARPA / AFRL
sys/kern/imgact_elf.c