Skip to content

Commit e888aa7

Browse files
manninglucasgvisor-bot
authored andcommitted
Pass the container name to SpecEnviron instead of container ID.
PiperOrigin-RevId: 766740302
1 parent bdb79d7 commit e888aa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/sentry/control/state.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ func SaveRestoreExec(k *kernel.Kernel, mode SaveRestoreExecMode) error {
258258
// env vars without relying on the Saver().
259259
var envv []string
260260
if k.Saver() != nil {
261-
envv = k.Saver().SpecEnviron(contID)
261+
contName := k.ContainerName(contID)
262+
envv = k.Saver().SpecEnviron(contName)
262263
}
263264

264265
proc := Proc{

0 commit comments

Comments
 (0)