1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/mount
Yong Tang 397a6fefad Inconsistent --tmpfs behavior
This fix tries to address the issue raised in #22420. When
`--tmpfs` is specified with `/tmp`, the default value is
`rw,nosuid,nodev,noexec,relatime,size=65536k`. When `--tmpfs`
is specified with `/tmp:rw`, then the value changed to
`rw,nosuid,nodev,noexec,relatime`.

The reason for such an inconsistency is because docker tries
to add `size=65536k` option only when user provides no option.

This fix tries to address this issue by always pre-progating
`size=65536k` along with `rw,nosuid,nodev,noexec,relatime`.
If user provides a different value (e.g., `size=8192k`), it
will override the `size=65536k` anyway since the combined
options will be parsed and merged to remove any duplicates.

Additional test cases have been added to cover the changes
in this fix.

This fix fixes #22420.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-05-26 19:28:18 -07:00
..
flags.go Inconsistent --tmpfs behavior 2016-05-26 19:28:18 -07:00
flags_freebsd.go Add documentation for exported functions and types 2015-04-03 11:33:34 +02:00
flags_linux.go Fix typos found across repository 2015-12-13 18:04:12 +02:00
flags_unsupported.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
mount.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
mount_unix_test.go Inconsistent --tmpfs behavior 2016-05-26 19:28:18 -07:00
mounter_freebsd.go Support FreeBSD on pkg/mount 2014-04-15 23:16:51 +09:00
mounter_linux.go Replace "amd64" build tags with "cgo" as appropriate, and remove where unnecessary 2014-08-06 17:20:21 -06:00
mounter_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
mounter_unsupported.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
mountinfo.go pkg: mount: golint 2015-07-22 10:26:10 +02:00
mountinfo_freebsd.go pkg: mount: golint 2015-07-22 10:26:10 +02:00
mountinfo_linux.go pkg: mount: golint 2015-07-22 10:26:10 +02:00
mountinfo_linux_test.go *: purge dockerinit from source code 2016-01-26 23:47:02 +11:00
mountinfo_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
mountinfo_unsupported.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
mountinfo_windows.go Windows: Fix mountinfo 2016-03-21 22:03:24 -07:00
sharedsubtree_linux.go fix variables that werent being called 2016-03-17 13:19:55 -07:00
sharedsubtree_linux_test.go Fix typos found across repository 2015-12-13 18:04:12 +02:00