openSUSE / microos-toolbox

Script to run a toolbox container on openSUSE MicroOS
Apache License 2.0
54 stars 15 forks source link

Properly share namespaces in non-user toolboxes #34

Closed dfaggioli closed 3 years ago

dfaggioli commented 3 years ago

When starting a "non-user" toolbox (i.e., starting without -u, whether it's rootful or not), we currently do no share the PID and IPC namespaces.

And that is bad, because non-user toolboxes are meant for debugging and troubleshooting. And being able, say, to strace or attach GDB to an host process is a super useful debugging feature.

And we need to share the host namespace, in order for that to be possible.

Signed-off-by: Dario Faggioli dfaggioli@suse.com