aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-03-16 19:05:27 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2019-03-16 19:05:27 +0100
commit63b16db2a9555db0e9c4bdc1f9fc0a1d73f42b9d (patch)
treedf985285a5171ef680e882487ea3bc722455d665 /configure
parentFix assogiate's private-bin (#2603) (diff)
downloadfirejail-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 'configure')
0 files changed, 0 insertions, 0 deletions