diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-10-09 21:06:18 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-10-09 21:07:14 -0700 |
commit | 20508bafb88d2037ea3b2c8483b191ce72e7ad7e (patch) | |
tree | 7713850d594c45cd8e577dc582cb1771c6d4e6de /runsc/cmd | |
parent | c36d2ef3733a0619b992f8ddc23b072474b04044 (diff) |
Add tests to verify gofer is chroot'ed
PiperOrigin-RevId: 216472439
Change-Id: Ic4cb86c8e0a9cb022d3ceed9dc5615266c307cf9
Diffstat (limited to 'runsc/cmd')
-rw-r--r-- | runsc/cmd/debug.go | 2 | ||||
-rw-r--r-- | runsc/cmd/list.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runsc/cmd/debug.go b/runsc/cmd/debug.go index caa44168b..cb7d81057 100644 --- a/runsc/cmd/debug.go +++ b/runsc/cmd/debug.go @@ -85,7 +85,7 @@ func (d *Debug) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) if err != nil { Fatalf("error loading container %q: %v", id, err) } - if candidate.Pid() == d.pid { + if candidate.SandboxPid() == d.pid { c = candidate break } diff --git a/runsc/cmd/list.go b/runsc/cmd/list.go index d554bf7cf..4d4a5cb0b 100644 --- a/runsc/cmd/list.go +++ b/runsc/cmd/list.go @@ -94,7 +94,7 @@ func (l *List) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) for _, c := range containers { fmt.Fprintf(w, "%s\t%d\t%s\t%s\t%s\t%s\n", c.ID, - c.Pid(), + c.SandboxPid(), c.Status, c.BundleDir, c.CreatedAt.Format(time.RFC3339Nano), |