]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4111: leave_suid() does not properly handle error codes returned by setuid
authortangqinghao <tangqinghao@360.cn>
Thu, 18 Feb 2016 02:48:41 +0000 (15:48 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 18 Feb 2016 02:48:41 +0000 (15:48 +1300)
commit989393f2f64c36cb3ef2e0872604e952067d5a08
treeeb32e54cbbce6a6fa80e63f3279a7628a903913e
parent824d4656ffebfdd4289adbdcde1f8be42795350b
Bug 4111: leave_suid() does not properly handle error codes returned by setuid

... this will cause privilege escalation in the rare case that setuid fails.
So far there are no known cases of this happening when downgrading from root.

Also fixes several incorrect uses of errno which may have been obscuring
error message details if it did happen.
src/tools.cc