1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/volume/mounts
Brian Goff 1caeb79963 Fix bindmount autocreate race
When using the mounts API, bind mounts are not supposed to be
automatically created.

Before this patch there is a race condition between valiating that a
bind path exists and then actually setting up the bind mount where the
bind path may exist during validation but was removed during mountpooint
setup.

This adds a field to the mountpoint struct to ensure that binds created
over the mounts API are not accidentally created.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2018-07-02 13:42:33 -07:00
..
lcow_parser.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
linux_parser.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
mounts.go Fix bindmount autocreate race 2018-07-02 13:42:33 -07:00
parser.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
parser_test.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
validate.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
validate_test.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
validate_unix_test.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
validate_windows_test.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
volume_copy.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
volume_unix.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
volume_windows.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00
windows_parser.go Move mount parsing to separate package. 2018-04-19 06:35:54 -04:00