This makes me wonder, is there an API that can be called to ask whether or not a given syscall number is valid on the current call, and if not, is there a reason why it would be considered a bad idea?
This diff has a ABI break: ld.so depends on a new kernel system call msyscall(2).
Update to a -current kernel first, which contains a dummy version.
edit: aside from the obvious objection, “omg what if people started doing all that horrible #ifdef style shit at runtime too!?”
Clever approach. I wonder if this can be (or already has) spread to other OS’s.
Original research from 2005: https://www.usenix.org/legacy/event/sec05/tech/full_papers/linn/linn.pdf
This makes me wonder, is there an API that can be called to ask whether or not a given syscall number is valid on the current call, and if not, is there a reason why it would be considered a bad idea?
edit: aside from the obvious objection, “omg what if people started doing all that horrible
#ifdef
style shit at runtime too!?”