From 5d103e595a0aab230ba8561ae34e830b30367906 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Thu, 16 Jul 2020 14:43:43 +0200 Subject: [PATCH] Fixes #146: cgroups_mem_max unit in config.proto This commit fixes the incorrect cgroups_mem_max unit described in a config.proto comment. We do not perform any calculations on this value and we don't specify the values unit (k/M/G) when writing to memory cgroup controller files, so the value is specified in bytes. --- config.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.proto b/config.proto index d468a8f..ea4d524 100644 --- a/config.proto +++ b/config.proto @@ -196,7 +196,7 @@ message NsJailConfig { optional bool seccomp_log = 60 [default = false]; /* If > 0, maximum cumulative size of RAM used inside any jail */ - optional uint64 cgroup_mem_max = 61 [default = 0]; /* In MiB */ + optional uint64 cgroup_mem_max = 61 [default = 0]; /* In bytes */ /* Mount point for cgroups-memory in your system */ optional string cgroup_mem_mount = 62 [default = "/sys/fs/cgroup/memory"]; /* Writeable directory (for the nsjail user) under cgroup_mem_mount */