]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 22 Mar 2017 22:23:01 +0000 (22:23 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 22 Mar 2017 22:23:01 +0000 (22:23 +0000)
commit1438fe3cf26f928726c5297d66ce96a303b9ccbc
treedcf287c91ecd25cb71b7e29afe79eefe5ad89f8b
parent7aab7a80e233dd0cdaca713d0cbf0913f355420a
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