]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Always give ELF brands a chance to veto a match.
authorjhb <jhb@FreeBSD.org>
Mon, 5 Feb 2018 23:27:42 +0000 (23:27 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 5 Feb 2018 23:27:42 +0000 (23:27 +0000)
commit3f3863ea7c0da34fc87df30705f1a6e43d6a7a97
tree2843a3d820df5d4f19244f494a9f7cbcb3580f5c
parent412ccaa7d288d3835fdf24e5e938f18ed89e4d28
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.

Reviewed by: kib
Obtained from: CheriBSD
MFC after: 2 weeks
Sponsored by: DARPA / AFRL
Differential Revision: https://reviews.freebsd.org/D13945
sys/kern/imgact_elf.c