[kernel-hardening] compile time warnings in libc for setuid() unused result (was: RLIMIT_NPROC check in set_user())

Vasiliy Kulikov
2011-07-14T16:31:24Z

Solar,

Similar thing worth trying to push upstream: for glibc (probably other
widespread libc implementations) edit headers to make compiler complain
if don't use setuid(2) and other capability dropping functions result
code. It would effectively signal distro maintainers (probably to the
program authors) that there is some significant issue(s) in the sources.

Thanks,

--
Vasiliy