jail: increase max additional env records to 64
authorDaniel Golle <daniel@makrotopia.org>
Tue, 13 Jul 2021 00:08:20 +0000 (01:08 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 15 Jul 2021 17:07:56 +0000 (18:07 +0100)
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 <daniel@makrotopia.org>
jail/jail.c

index cf3127a1715d59678d492981f41fd4f1072b3312..b8878b5dab9c43d0e4fc4a57ed137a80caa0177c 100644 (file)
@@ -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];