Comment 13 for bug 1611444

Revision history for this message
Stéphane Graber (stgraber) wrote : Re: Cannot share a namespace between apps in a SNAP

The most likely solution to this would be the introduction of a flag to allow "apps" within the snap snap to share mount namespace. This would be opt-in and would limit what kind of interface you can use from those apps but would solve your problem.

Until then, you could go the lxd way, which is that instead of starting two separate daemons, we're currently starting just one, which executes a wrapper script that runs both of them, in the same mount namespace.

If that's not an option for you, then you'd need to have B and C in your example, run through a small C wrapper that grabs the reference to the mount namespace used by A and setns() into it.

That option would most likely require you to install in devmode as it would need access to other processes and the ability to escape the mount namespace through setns.