moby--moby/utils
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
..
templates Fix testcases that expect trailing whitespace 2016-09-13 17:58:12 -04:00
debug.go
debug_test.go
names.go Restrict checkpoint name to prevent directory traversal 2016-11-23 13:23:07 -08:00
process_unix.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
process_windows.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
utils.go Remove static errors from errors package. 2016-02-26 15:49:09 -05:00
utils_test.go