1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/libexec/rtld-elf
Jonathan Anderson d5a5e50d3b Allow rtld direct-exec to take a file descriptor.
When executing rtld directly, allow a file descriptor to be explicitly
specified rather than opened from the given path. This, together with the
LD_LIBRARY_PATH_FDS environment variable, allows dynamically-linked
applications to be executed from within capability mode.

Also add some rudimentary argument parsing (without pulling in getopt or
the like) to accept this file descriptor, a help (-h) option and a basic
usage string.

Reviewed by:	kib
Sponsored by:	NSERC, RDC
Differential Revision:	https://reviews.freebsd.org/D10751
2017-05-17 22:51:28 +00:00
..
aarch64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
amd64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
arm Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
i386 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
mips Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
powerpc Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
powerpc64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
riscv Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
sparc64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
tests Increase WARNS for rtld-elf tests 2017-03-11 00:10:40 +00:00
debug.c
debug.h
libmap.c
libmap.h
Makefile Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
Makefile.depend
malloc.c
map_object.c Fix the AT_EXECFD functionality. 2017-05-15 18:47:25 +00:00
paths.h
rtld_lock.c
rtld_lock.h
rtld_printf.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rtld_printf.h
rtld_tls.h
rtld_utrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rtld.1 rtld(1): Document that LD_BIND_NOT is unset for setugid processes. 2017-03-16 22:15:43 +00:00
rtld.c Allow rtld direct-exec to take a file descriptor. 2017-05-17 22:51:28 +00:00
rtld.h Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
Symbol.map
xmalloc.c