diff options
author | smitsohu <smitsohu@gmail.com> | 2019-03-16 19:05:27 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2019-03-16 19:05:27 +0100 |
commit | 63b16db2a9555db0e9c4bdc1f9fc0a1d73f42b9d (patch) | |
tree | df985285a5171ef680e882487ea3bc722455d665 /src/lib | |
parent | Fix assogiate's private-bin (#2603) (diff) | |
download | firejail-63b16db2a9555db0e9c4bdc1f9fc0a1d73f42b9d.tar.gz firejail-63b16db2a9555db0e9c4bdc1f9fc0a1d73f42b9d.tar.zst firejail-63b16db2a9555db0e9c4bdc1f9fc0a1d73f42b9d.zip |
hardening: replace setuid/setgid calls with setresuid/setresgid
when nesting containers and sandboxes, it is possible setuid() fails
silently to reset the saved uid, which is then cleared only by
the next execve. This is solved by replacing setuid() with more
robust setresuid() function calls.
Also add code to drop privileges when entering the run_no_sandbox()
function (along with some minor tidy up).
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions