From 49eccdc6c82724cc1aa1ce16f55cca9874173bfc Mon Sep 17 00:00:00 2001 From: Maksim An Date: Thu, 3 Nov 2022 08:25:57 -0700 Subject: [PATCH] fix: wrong assignment after enforcing a policy (#1559) Signed-off-by: Maksim An --- guest/runtime/hcsv2/uvm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guest/runtime/hcsv2/uvm.go b/guest/runtime/hcsv2/uvm.go index 32eacfb7aa..c283c0244b 100644 --- a/guest/runtime/hcsv2/uvm.go +++ b/guest/runtime/hcsv2/uvm.go @@ -544,7 +544,7 @@ func (h *Host) ExecProcess(ctx context.Context, containerID string, params prot. } if envToKeep != nil { - params.OCIProcess.Args = envToKeep + params.OCIProcess.Env = envToKeep } pid, err = c.ExecProcess(ctx, params.OCIProcess, conSettings)