containers / bubblewrap

Low-level unprivileged sandboxing tool used by Flatpak and similar projects
Other
3.99k stars 239 forks source link

Tidy handling of privileged operation fds #666

Open smcv opened 4 weeks ago

smcv commented 4 weeks ago

Similar to #665, but for the socket pair that communicates privileged operations between the temporary unprivileged child and the privileged parent when we are setuid root.

cc @refi64

smcv commented 4 weeks ago

Setting the members of privsep_sockets[] to -1

... is not (currently) something that cleanup_fdp() does, so this PR is wrong.