3 ms·
> "No more file access, no more network connections". You could potentially use setrlimit on RLIMIT_NOFILE to limit your number of open files. Although... you
by jstanley 10y ago
> "No more file access, no more network connections".
You could potentially use setrlimit on RLIMIT_NOFILE to limit your number of open files.
Although... you probably still want to display something to the terminal which means you still want stdout and stderr, so an attacker could just close stdout and stderr before doing whatever they wanted with their 2 remaining fds.