Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only
authorkib <kib@FreeBSD.org>
Wed, 22 Mar 2017 22:23:01 +0000 (22:23 +0000)
committerkib <kib@FreeBSD.org>
Wed, 22 Mar 2017 22:23:01 +0000 (22:23 +0000)
commita22b5a31351362d7b7d11669184173d73e29aa38
treedcf287c91ecd25cb71b7e29afe79eefe5ad89f8b
parent08a98416ad2d58ed6929dad430874a51531cd793
Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only
matches static binaries.

Interpretation of the 'static' there is that the binary must not
specify an interpreter.  In particular, shared objects are matched by
the brand if BI_CAN_EXEC_DYN is also set.

This improves precision of the brand matching, which should eliminate
surprises due to brand ordering.

Revert r315701.

Discussed with and tested by: ed (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/amd64/cloudabi32/cloudabi32_sysvec.c
sys/amd64/cloudabi64/cloudabi64_sysvec.c
sys/arm/cloudabi32/cloudabi32_sysvec.c
sys/arm64/cloudabi64/cloudabi64_sysvec.c
sys/i386/cloudabi32/cloudabi32_sysvec.c
sys/kern/imgact_elf.c
sys/sys/imgact_elf.h