moby--moby/volume
Yong Tang c90ec05175 Restrict checkpoint name to prevent directory traversal
This fix tries to address the issue raised in 28769 where
checkpoint name was not checked before passing to containerd.
As a result, it was possible to use a special checkpoint name
to get outside of the container's directory.

This fix add restriction `[a-zA-Z0-9][a-zA-Z0-9_.-]+` (`RestrictedNamePattern`).
This is the same as container name restriction.

This fix fixes 28769.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-11-23 13:23:07 -08:00
..
drivers
local Restrict checkpoint name to prevent directory traversal 2016-11-23 13:23:07 -08:00
store fix gofmt in master 2016-11-18 15:20:19 -08:00
testutils
validate.go
validate_test.go
validate_test_unix.go
validate_test_windows.go
volume.go
volume_copy.go
volume_copy_unix.go
volume_copy_windows.go
volume_linux.go Use container Mounts API for Swarm containers. 2016-11-22 13:23:51 -05:00
volume_linux_test.go
volume_propagation_linux.go
volume_propagation_linux_test.go
volume_propagation_unsupported.go
volume_test.go Fix several issues with `go vet` and `go fmt` 2016-11-17 06:31:28 -08:00
volume_unix.go
volume_unsupported.go
volume_windows.go