Commit 7b49876
committed
Fix cgroup checks for containers
So far, from what I've noticed, is that you can perfectly fine run
processes with a cgroup line of 0::/.
I've been playing around with a non-systemd distro to see how they
behave. I picked Alpine, which uses OpenRC. When you open a shell,
you are actually in the 0::/ cgroup. But, as soon as you launch it
on boot using the init system, it assigns you a cgroups service is
running.
As time is limited, I assume that most init systems will assign a
cgroup with prefix if you run a service when cgroups are enabled.
Therefore, we now assume that we have an invalid configuration if the cgroup prefix is empty.1 parent 95df1de commit 7b49876
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments