You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to somehow use unshare to create a new mount namespace with a single folder shared between the new mount namespace and the parent one? Or, failing that, is it somehow possible to enter the child mount ns from the parent and move a mountpoint from the child ns into the parent ns?
The final objective I'm trying to achieve is something like systemd's machinectl bind but in reverse: I need to run something inside a mount ns (not a security boundary), which will mount some number of new filesystems, and "pick" some of those into the host.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to somehow use
unshare
to create a new mount namespace with a single folder shared between the new mount namespace and the parent one? Or, failing that, is it somehow possible to enter the child mount ns from the parent and move a mountpoint from the child ns into the parent ns?The final objective I'm trying to achieve is something like systemd's
machinectl bind
but in reverse: I need to run something inside a mount ns (not a security boundary), which will mount some number of new filesystems, and "pick" some of those into the host.Beta Was this translation helpful? Give feedback.
All reactions