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/sys/imgact_elf.h | |
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/sys/imgact_elf.h')
-rw-r--r-- | sys/sys/imgact_elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/imgact_elf.h b/sys/sys/imgact_elf.h index 8bb4cc25a976..663a09078fa8 100644 --- a/sys/sys/imgact_elf.h +++ b/sys/sys/imgact_elf.h @@ -63,6 +63,8 @@ typedef struct { const char *interp_path; struct sysentvec *sysvec; const char *interp_newpath; + int flags; +#define BI_CAN_EXEC_DYN 0x0001 } __ElfN(Brandinfo); __ElfType(Auxargs); |