diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-10-08 23:27:26 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-08 23:27:26 +0000 |
commit | 4c10244fb3b2f639db1bac3b607c0cab32ee04f0 (patch) | |
tree | c7b9399b29f5f161e18a84243e7434032b818a8c /runsc/boot | |
parent | f3b571fd753c82daf18cf9f5ebebbff8c83f4e80 (diff) | |
parent | a357fe427b0bf64c8431ae31e33259ad60febac9 (diff) |
Merge release-20190806.1-250-ga357fe4 (automated)
Diffstat (limited to 'runsc/boot')
-rw-r--r-- | runsc/boot/controller.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/runsc/boot/controller.go b/runsc/boot/controller.go index 26a60d5b8..a73c593ea 100644 --- a/runsc/boot/controller.go +++ b/runsc/boot/controller.go @@ -18,7 +18,6 @@ import ( "errors" "fmt" "os" - "path" "syscall" specs "github.com/opencontainers/runtime-spec/specs-go" @@ -234,13 +233,6 @@ func (cm *containerManager) Start(args *StartArgs, _ *struct{}) error { if args.CID == "" { return errors.New("start argument missing container ID") } - // Prevent CIDs containing ".." from confusing the sentry when creating - // /containers/<cid> directory. - // TODO(b/129293409): Once we have multiple independent roots, this - // check won't be necessary. - if path.Clean(args.CID) != args.CID { - return fmt.Errorf("container ID shouldn't contain directory traversals such as \"..\": %q", args.CID) - } if len(args.FilePayload.Files) < 4 { return fmt.Errorf("start arguments must contain stdin, stderr, and stdout followed by at least one file for the container root gofer") } |