Merge pull request #516 from Random-Liu/remove-default-rlimits

Remove default rlimits
This commit is contained in:
Lantao Liu 2018-01-02 11:54:48 -08:00 committed by GitHub
commit 750115c812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -747,6 +747,10 @@ func defaultRuntimeSpec(id string) (*runtimespec.Spec, error) {
if spec.Linux != nil { if spec.Linux != nil {
spec.Linux.Seccomp = nil spec.Linux.Seccomp = nil
} }
// Remove default rlimits (See issue #515)
spec.Process.Rlimits = nil
return spec, nil return spec, nil
} }