diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-12-26 21:23:57 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2005-12-26 21:23:57 +0000 |
commit | 900b28f9f6badd942a4b9e440fc0645480563704 (patch) | |
tree | 915d25cef97f2d33bc2aa9fb449ee4c0faa7722d /sys/ia64 | |
parent | 4e0a8f0dc77194763fe708a2bbb2090e7ac6ead5 (diff) | |
download | src-900b28f9f6badd942a4b9e440fc0645480563704.tar.gz src-900b28f9f6badd942a4b9e440fc0645480563704.zip |
Remove kern.elf32.can_exec_dyn sysctl. Instead extend Brandinfo structure
with flags bitfield and set BI_CAN_EXEC_DYN flag for all brands that usually
allow executing elf dynamic binaries (aka shared libraries). When it is
requested to execute ET_DYN elf image check if this flag is on after we
know the elf brand allowing execution if so.
PR: kern/87615
Submitted by: Marcin Koziej <creep@desk.pl>
Notes
Notes:
svn path=/head/; revision=153741
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/elf_machdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ia64/ia64/elf_machdep.c b/sys/ia64/ia64/elf_machdep.c index ccd50835694d..64f82503d420 100644 --- a/sys/ia64/ia64/elf_machdep.c +++ b/sys/ia64/ia64/elf_machdep.c @@ -90,6 +90,7 @@ static Elf64_Brandinfo freebsd_brand_info = { "/libexec/ld-elf.so.1", &elf64_freebsd_sysvec, NULL, + 0, }; SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_ANY, (sysinit_cfunc_t)elf64_insert_brand_entry, &freebsd_brand_info); @@ -102,6 +103,7 @@ static Elf64_Brandinfo freebsd_brand_oinfo = { "/usr/libexec/ld-elf.so.1", &elf64_freebsd_sysvec, NULL, + 0, }; SYSINIT(oelf64, SI_SUB_EXEC, SI_ORDER_ANY, (sysinit_cfunc_t)elf64_insert_brand_entry, &freebsd_brand_oinfo); |