commit | 2268718ee2b23936f6db88eff7af03762713c169 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Nov 17 16:55:42 2010 -0800 |
committer | Nick Kralevich <nnk@google.com> | Wed Nov 17 16:55:42 2010 -0800 |
tree | 645d3a07e8477a11b432a63c0659c4e910ec9268 | |
parent | 609d8828d3b8266a80606bf902d1294296962cf3 [diff] |
check the return value of setuid and friends Under some circumstances, setuid() and family can fail, returning a non-zero value. (see "man setuid" for details). If this happens, we want to ensure that init doesn't spawn a process which has root privileges when it's not suppose to. Change-Id: Idd03f2c8f82a7eaf6e696b5bcfe308e51ea58b52