diff options
author | 2021-07-17 15:13:44 +0100 | |
---|---|---|
committer | 2021-07-17 15:13:44 +0100 | |
commit | 1c75ec573903de8294172e65e0dd88108a524924 (patch) | |
tree | 545cee839ab0e0b048b7c7fcc9ce4e66ed157e50 | |
parent | add anyio (diff) |
feat: increased PID limits
Processes spawned in snekbox now have up to 5 PIDs available, each sharing the same memory limits and environment as the parent python process. As far as I could see in testing this does appear safe and processes behave as expected even when detatching from the parent or exceeding memory limits.
-rw-r--r-- | config/snekbox.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snekbox.cfg b/config/snekbox.cfg index 73e36e1..9e15cc6 100644 --- a/config/snekbox.cfg +++ b/config/snekbox.cfg @@ -107,7 +107,7 @@ mount { cgroup_mem_max: 52428800 cgroup_mem_mount: "/sys/fs/cgroup/memory" -cgroup_pids_max: 1 +cgroup_pids_max: 5 cgroup_pids_mount: "/sys/fs/cgroup/pids" iface_no_lo: true |