moby--moby/pkg/mount
Steven Hartland b3b14b97b1 Fix linux mount calls not applying propagation type changes
Propagation type changes must be done as a separate call, in the
same way as read only bind mounts.

To fix this:
1. Ensure propagation type change flags aren't included in other calls.
2. Apply propagation type change in a separate call.

Also:
* Make it clear which parameters are ignored by passing them as empty.
* Add tests to ensure Mount options are applied correctly.

Fixes #30415

Signed-off-by: Steven Hartland <steven.hartland@multiplay.co.uk>
2017-02-15 14:15:09 +00:00
..
flags.go
flags_freebsd.go
flags_linux.go
flags_unsupported.go
mount.go
mount_unix_test.go
mounter_freebsd.go
mounter_linux.go Fix linux mount calls not applying propagation type changes 2017-02-15 14:15:09 +00:00
mounter_linux_test.go Fix linux mount calls not applying propagation type changes 2017-02-15 14:15:09 +00:00
mounter_solaris.go
mounter_unsupported.go
mountinfo.go
mountinfo_freebsd.go
mountinfo_linux.go
mountinfo_linux_test.go
mountinfo_solaris.go
mountinfo_unsupported.go
mountinfo_windows.go
sharedsubtree_linux.go
sharedsubtree_linux_test.go
sharedsubtree_solaris.go