« Previous | Next » 

Revision 96ea5367

ID96ea5367dbea7b77e6b7454c1de85b30b7ba7035
Parent 7c6d645a
Child 2791333c

Added by Tomasz Buchert almost 4 years ago

mnexec: properly setup the mount namespace

Systemd's default is to mark the root mount as shared and it is
inherited as such by the new mount namespace. This means that any
mounts performed inthe new namespace will be visible by the rest of
the system, breaking privateDirs.

To restore a more sane behaviour, we explicitly mark all mounts
recursively as private, meaning that we will no longer see new mounts
from the root namespace, and our mounts will also not propagate to the
rest of the system.

Fixes #565

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences