Pass the containerCgroup to the sandbox object instead of parent.

This is a bug reported by #8311. It affects sandboxes where
containerCgroup != parentCgroup.

PiperOrigin-RevId: 498443910
This commit is contained in:
Lucas Manning
2022-12-29 13:54:42 -08:00
committed by gVisor bot
parent ab1e49567e
commit 85f261dd1e
+1 -1
View File
@@ -283,7 +283,7 @@ func New(conf *config.Config, args Args) (*Container, error) {
UserLog: args.UserLog,
IOFiles: ioFiles,
MountsFile: specFile,
Cgroup: parentCgroup,
Cgroup: containerCgroup,
Attached: args.Attached,
OverlayFilestoreFile: overlayFilestoreFile,
}