mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Do not validate CgroupsPath in the OCI spec during restore.
The CgroupsPath is expected to change during restore. Instead we should verify that cgroups configuration is same across checkpoint restore (by checking spec.Linux.Resources). PiperOrigin-RevId: 693175200
This commit is contained in:
@@ -357,9 +357,6 @@ func validateSpecForContainer(oldSpec, newSpec *specs.Spec, cName string) error
|
||||
}
|
||||
|
||||
// Validate specs.Linux.
|
||||
if oldLinux.CgroupsPath != newLinux.CgroupsPath {
|
||||
return validateError("CgroupsPath", cName, oldLinux.CgroupsPath, newLinux.CgroupsPath)
|
||||
}
|
||||
validateStructMap["Sysctl"] = [2]any{oldLinux.Sysctl, newLinux.Sysctl}
|
||||
validateStructMap["Seccomp"] = [2]any{oldLinux.Seccomp, newLinux.Seccomp}
|
||||
if err := validateDevices("Devices", cName, oldLinux.Devices, newLinux.Devices); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user