From: Daniel Golle Date: Tue, 13 Jul 2021 00:08:20 +0000 (+0100) Subject: jail: increase max additional env records to 64 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=92aba532aae5d8650ca7d2ee1104e206d1e91c5d;p=project%2Fprocd.git 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 --- 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];