16ff3cd8df
The current check only tries to detect whether /sys/fs/cgroup exists and whether it is writable or not. But when the init system doesn't mount cgroups then /sys/fs/cgroup will just be an empty directory. When paired with unprivileged containers that mount sysfs this will cause misleading errors to be printed since /sys/fs/cgroup will be owned by user nobody:nogroup in this case. Independent of this specific problem this check will also be misleading when the /sys/fs/cgroup exists and is in fact writable by the init system but isn't actually a mountpoint. Note from William. "grep -qs" doesn't need to redirect output to /dev/null since it is completely silent. This fixes #209. |
||
---|---|---|
.. | ||
.gitignore | ||
binfmt.sh.in | ||
cgroup-release-agent.sh.in | ||
functions.sh.in | ||
gendepends.sh.in | ||
init-early.sh.Linux.in | ||
init.sh.BSD.in | ||
init.sh.GNU-kFreeBSD.in | ||
init.sh.GNU.in | ||
init.sh.Linux.in | ||
Makefile | ||
migrate-to-run.sh.in | ||
openrc-run.sh.in | ||
rc-cgroup.sh.in | ||
rc-functions.sh.in | ||
rc-mount.sh | ||
runit.sh | ||
runtests.sh | ||
s6.sh | ||
start-stop-daemon.sh | ||
supervise-daemon.sh |