From 92aba532aae5d8650ca7d2ee1104e206d1e91c5d Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Tue, 13 Jul 2021 01:08:20 +0100 Subject: [PATCH] jail: increase max additional env records to 64 In the Docker world, people pass a lot of things using env variables it turns out. Increase to 64 for now as a hot fix, will have to be created dynamically in future to support unlimited number of env variables. Signed-off-by: Daniel Golle --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail/jail.c b/jail/jail.c index cf3127a..b8878b5 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -891,7 +891,7 @@ static int apply_rlimits(void) return 0; } -#define MAX_ENVP 16 +#define MAX_ENVP 64 static char** build_envp(const char *seccomp, char **ocienvp) { static char *envp[MAX_ENVP]; -- 2.30.2