summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2021-07-13 00:08:20 +0000
committerDaniel Golle2021-07-15 17:07:56 +0000
commit92aba532aae5d8650ca7d2ee1104e206d1e91c5d (patch)
tree07ce65236595263f88e4253d08c2d9d711b0bb70
parentb0a8ea1c3fa844d1006764fae3f0d8382351313b (diff)
downloadprocd-92aba532aae5d8650ca7d2ee1104e206d1e91c5d.tar.gz
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 <daniel@makrotopia.org>
-rw-r--r--jail/jail.c2
1 files changed, 1 insertions, 1 deletions
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];