Comment 8 for bug 1668659

Revision history for this message
Stéphane Graber (stgraber) wrote :

Ah, on Ubuntu 14.04 /lib/systemd/upstart/snap.mount.service calls make-rshared to workaround this issue.

I think the right thing to do overall is to have snapd check if /snap is on a MS_SHARED mount point. If not, then bind-mount /snap onto itself and set MS_SHARED on the resulting mountpoint. That will then cause all mounts under /snap (and ONLY /snap) to be propagated to the snap mount namespaces.