3 ms·
"seccomp()" (old simple mode) does pretty much this but much more simply and efficiently - disallows all system calls except read() and write() to existing file
by ploxiln 11y ago
"seccomp()" (old simple mode) does pretty much this but much more simply and efficiently - disallows all system calls except read() and write() to existing file descriptors, and exit() and sigreturn().
https://en.wikipedia.org/wiki/Seccomp https://en.wikipedia.org/wiki/Seccomp