Commit 8aab920
committed
jailer: Better error message for failure of moving to cgroup
If no --cgroup parameters are specified and --cgroup-version=2 is
passed, the jailer moves the process to the cgroup specified with
--parent-cgroup rather than creating a cgroup under it, contrary to its
name. This move fails if the destination cgroup has domain controllers
(e.g. memory) enabled in cgroup.subtree_control, which is called "no
internal process constraint [1].
[1]: https://docs.kernel.org/admin-guide/cgroup-v2.html#no-internal-process-constraint
Signed-off-by: Takahiro Itazuri <[email protected]>1 parent 8b912c1 commit 8aab920
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments