aboutsummaryrefslogtreecommitdiff
path: root/support/init.d.examples/README.md
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2018-02-12 13:32:01 +0100
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-02-23 15:51:12 -0600
commit16ff3cd8df6169f73e3d7cf00758a4703f62cbf0 (patch)
treed6a27b69598bbf611c0778d5fabbe318cd5f6e57 /support/init.d.examples/README.md
parent38032626a6c2f8e869197999f32ac3634667cc86 (diff)
check whether /sys/fs/cgroup is a mountpoint
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.
Diffstat (limited to 'support/init.d.examples/README.md')
0 files changed, 0 insertions, 0 deletions