Allow RLIMIT_RSS to be set

Closes #4746

PiperOrigin-RevId: 342747165
This commit is contained in:
Fabricio Voznika
2020-11-16 16:31:21 -08:00
committed by gVisor bot
parent cc5cfce4c6
commit d48610795d
+3
View File
@@ -90,6 +90,9 @@ var setableLimits = map[limits.LimitType]struct{}{
limits.FileSize: {},
limits.MemoryLocked: {},
limits.Stack: {},
// RSS can be set, but it's not enforced because Linux doesn't enforce it
// either: "This limit has effect only in Linux 2.4.x, x < 30"
limits.Rss: {},
// These are not enforced, but we include them here to avoid returning
// EPERM, since some apps expect them to succeed.
limits.Core: {},