PR_SET_DUMPABLE
In some sandboxed applications like the example code in libseccomp the PR_SET_DUMPABLE is set to 0 to prevent escape via ptrace
However here https://github.com/containers/bubblewrap/blob/1f7e2ad948c051054b683461885a0215f1806240/bubblewrap.c#L852 bubblewrap is set as traceable instead.
Why is this? If I am not mistaken, this recent issue https://github.com/containers/bubblewrap/security/advisories/GHSA-j2qp-rvxj-43vj would have been prevented if this value was set to 0 instead.
Its done once we no longer need any privileges, because doing so opens up to access to various files in /proc to access by your uid which some things (like. e..g flatpak) relies on.
I guess if we wanted to we could make this optional as its not always needed.