2 ms·
Thankfully, setuid() no longer fails on Linux because of RLIMIT_NPROC, as of 2011[1]. Still, I agree with you 100%: check your syscall return values, especial
by agwa 12y ago
Thankfully, setuid() no longer fails on Linux because of RLIMIT_NPROC, as of 2011[1].
Still, I agree with you 100%: check your syscall return values, especially security-critical syscalls like setuid!
[1] http://lwn.net/Articles/451985/ http://lwn.net/Articles/451985/ and http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=72fa59970f8698023045ab0713d66f3f4f96945c http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.g...