From 3e49dcef4e48121fb26a7e41f8730d7a81f5c3be Mon Sep 17 00:00:00 2001 From: Danny Canter Date: Tue, 3 Feb 2026 00:45:01 -0800 Subject: [PATCH] Add in missing rlimits (#1140) Containerization didn't have these defined until a recent tag. --- Sources/Services/ContainerAPIService/Client/Parser.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Services/ContainerAPIService/Client/Parser.swift b/Sources/Services/ContainerAPIService/Client/Parser.swift index 07c218aa..1a6c9547 100644 --- a/Sources/Services/ContainerAPIService/Client/Parser.swift +++ b/Sources/Services/ContainerAPIService/Client/Parser.swift @@ -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", ]