4 ms·
Does that mean that linking against libc is mandatory and that applications are not allowed to bring their own version of libc along for instance when linked st
by jacquesm 7y ago
Does that mean that linking against libc is mandatory and that applications are not allowed to bring their own version of libc along for instance when linked statically?
- saagarjha 7y agoStatically linked programs automatically lose this protection, apparently.
- ori_b 7y agoPartly. If they jit, or have shellcode injected, that code is not mappable with syscall privilege.
- tedunangst 7y agoNo. There's nothing special about libc. (Oh, double checked, and uh, maybe. ld.so does treat libc specially if it finds it in the library list, but at that point, you are linking with libc. But afaik there's no requirement you use the system ld.so either.)
- jacquesm 7y agoThen isn't Animats' point valid?
- tedunangst 7y agoThe point of doing this is not to protect against people bringing their own bad libc.
- throwaway2048 7y agoThis is a flag in the ELF binary section headers, if you don't want it, flag your entire binary as "syscalls allowed".