diff options
author | sobomax <sobomax@FreeBSD.org> | 2005-12-26 21:23:57 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2005-12-26 21:23:57 +0000 |
commit | 34fa5a81a54eaa10eb4a68d7f7e3345ece4f9e28 (patch) | |
tree | 915d25cef97f2d33bc2aa9fb449ee4c0faa7722d /sys/sys/imgact_elf.h | |
parent | b9da93266fdc570180552a109592b65aedf45357 (diff) | |
download | FreeBSD-src-34fa5a81a54eaa10eb4a68d7f7e3345ece4f9e28.zip FreeBSD-src-34fa5a81a54eaa10eb4a68d7f7e3345ece4f9e28.tar.gz |
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>
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 8bb4cc2..663a090 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); |