HomeFreeBSD

Always give ELF brands a chance to veto a match.

Description

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

Details

Provenance
jhbAuthored on
Reviewer
kib
Differential Revision
D13945: Always give ELF brands a chance to veto a match.
Parents
rS328908: Merge from current
Branches
Unknown
Tags
Unknown