Add in missing rlimits (#1140)

Containerization didn't have these defined until a recent tag.
This commit is contained in:
Danny Canter
2026-02-03 00:45:01 -08:00
committed by GitHub
parent c4c2e8515b
commit 3e49dcef4e
@@ -870,17 +870,21 @@ public struct Parser {
return !label.ranges(of: pattern).isEmpty
}
// TODO: When containerization supports all 16 (minus AS as it's not great) add
// them here.
private static let ulimitNameToRlimit: [String: String] = [
"core": "RLIMIT_CORE",
"cpu": "RLIMIT_CPU",
"data": "RLIMIT_DATA",
"fsize": "RLIMIT_FSIZE",
"locks": "RLIMIT_LOCKS",
"memlock": "RLIMIT_MEMLOCK",
"msgqueue": "RLIMIT_MSGQUEUE",
"nice": "RLIMIT_NICE",
"nofile": "RLIMIT_NOFILE",
"nproc": "RLIMIT_NPROC",
"rss": "RLIMIT_RSS",
"rtprio": "RLIMIT_RTPRIO",
"rttime": "RLIMIT_RTTIME",
"sigpending": "RLIMIT_SIGPENDING",
"stack": "RLIMIT_STACK",
]