summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-08-22 17:45:44 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-27 13:26:28 +0000
commit663ee91eec01706008046c1df2c307716f9288db (patch)
treef789c4e681e51c74a29b9c71df8db73806f7f751 /libpod
parent90e93e66b0906e59efe3025d801a0e122bd4c42e (diff)
downloadpodman-663ee91eec01706008046c1df2c307716f9288db.tar.gz
podman-663ee91eec01706008046c1df2c307716f9288db.tar.bz2
podman-663ee91eec01706008046c1df2c307716f9288db.zip
Fix Mount Propagation
Default mount propagation inside of containes should be private Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1305 Approved by: mheon
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index ba02c9f5a..c0912dc0d 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -107,7 +107,7 @@ func (c *Container) generateSpec(ctx context.Context) (*spec.Spec, error) {
Type: "bind",
Source: srcPath,
Destination: dstPath,
- Options: []string{"rw", "bind"},
+ Options: []string{"rw", "bind", "private"},
}
if !MountExists(g.Mounts(), dstPath) {
g.AddMount(newMount)