diff options
author | kib <kib@FreeBSD.org> | 2017-04-06 15:19:18 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-04-06 15:19:18 +0000 |
commit | 11ac0fc26ac23e16776d84b8d27eee593b527f8f (patch) | |
tree | 0f7461532ffabb423b535e6331c4c468c39ea31e /sys/sys | |
parent | 9a92d335245044a13a361c9927ac09113ff68488 (diff) | |
download | FreeBSD-src-11ac0fc26ac23e16776d84b8d27eee593b527f8f.zip FreeBSD-src-11ac0fc26ac23e16776d84b8d27eee593b527f8f.tar.gz |
Improvements for the brand detection and prioritization.
MFC r315701 (by ed):
Set the interpreter path to /nonexistent.
MFC r315749:
Adjust r314851 to not require every brand to specify interpreter path.
MFC r315753:
Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only
matches static binaries.
MFC r315754:
Update r315753 with the proper flag name.
MFC r316211:
A followup to r315749, two more places where brand->interp_path was
accessed unconditionally.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/imgact_elf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/imgact_elf.h b/sys/sys/imgact_elf.h index 0ec04fc..40ad7c7 100644 --- a/sys/sys/imgact_elf.h +++ b/sys/sys/imgact_elf.h @@ -81,6 +81,7 @@ typedef struct { #define BI_CAN_EXEC_DYN 0x0001 #define BI_BRAND_NOTE 0x0002 /* May have note.ABI-tag section. */ #define BI_BRAND_NOTE_MANDATORY 0x0004 /* Must have note.ABI-tag section. */ +#define BI_BRAND_ONLY_STATIC 0x0008 /* Match only interp-less binaries. */ } __ElfN(Brandinfo); __ElfType(Auxargs); |