Hacker News new | ask | show | jobs
by xerxes901 602 days ago
/proc/PID/root is a view of that process’s mount namespace.

Also you can use nsenter(8) to run a command (or even a shell) under another process’s mount, pid, network, etc namespace.

2 comments

mount namespace and root directory are bit different things though.

/proc/$PID/ns is the place to look for namespaces

Thanks!

It's exactly what I was looking for, and the world can now continue to improve without breaking any of my workflows :)