CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2023/01/16 00:09:12
Modified files: sys/sys : proc.h sys/kern : exec_elf.c sys/uvm : uvm_mmap.c lib/libc/dlfcn : init.c Log message: Currently we disable kbind(2) for static program from libc.a's preinit hook. Delete that and instead have the kernel disable kbind at exec-time if the program doesn't have an ELF interpreter. For now, permit userland calls to disable it when already disabled so existing static programs continue to work. prompted by deraadt@ questioning about the call in libc.a ok deraadt@ miod@