Skip to content

Commit 3e49dce

Browse files
authored
Add in missing rlimits (#1140)
Containerization didn't have these defined until a recent tag.
1 parent c4c2e85 commit 3e49dce

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Sources/Services/ContainerAPIService/Client/Parser.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,17 +870,21 @@ public struct Parser {
870870
return !label.ranges(of: pattern).isEmpty
871871
}
872872

873-
// TODO: When containerization supports all 16 (minus AS as it's not great) add
874-
// them here.
875873
private static let ulimitNameToRlimit: [String: String] = [
876874
"core": "RLIMIT_CORE",
877875
"cpu": "RLIMIT_CPU",
878876
"data": "RLIMIT_DATA",
879877
"fsize": "RLIMIT_FSIZE",
878+
"locks": "RLIMIT_LOCKS",
880879
"memlock": "RLIMIT_MEMLOCK",
880+
"msgqueue": "RLIMIT_MSGQUEUE",
881+
"nice": "RLIMIT_NICE",
881882
"nofile": "RLIMIT_NOFILE",
882883
"nproc": "RLIMIT_NPROC",
883884
"rss": "RLIMIT_RSS",
885+
"rtprio": "RLIMIT_RTPRIO",
886+
"rttime": "RLIMIT_RTTIME",
887+
"sigpending": "RLIMIT_SIGPENDING",
884888
"stack": "RLIMIT_STACK",
885889
]
886890

0 commit comments

Comments
 (0)