]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - docs/CGROUP_DELEGATION.md
docs: permit user/group services that do not support enumeration
[thirdparty/systemd.git] / docs / CGROUP_DELEGATION.md
index 607ba6f81094b1ed4b00264c214822d597203da8..4011f093228149afa9f184861f5b1c731dce759b 100644 (file)
@@ -1,5 +1,7 @@
 ---
 title: Control Group APIs and Delegation
+category: Interfaces
+layout: default
 ---
 
 # Control Group APIs and Delegation
@@ -19,10 +21,10 @@ comprehensive up-to-date information about all this, particular in light of the
 poor implementations of the components interfacing with systemd of current
 container managers.
 
-Before you read on, please make sure you read the low-level [kernel
-documentation about
-cgroup v2](https://www.kernel.org/doc/Documentation/cgroup-v2.txt). This
-documentation then adds in the higher-level view from systemd.
+Before you read on, please make sure you read the low-level kernel
+documentation about the
+[unified cgroup hierarchy](https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html).
+This document then adds in the higher-level view from systemd.
 
 This document augments the existing documentation we already have:
 
@@ -129,6 +131,8 @@ If you wonder how to detect which of these three modes is currently used, use
 you are either in legacy or hybrid mode. To distinguish these two cases, run
 `statfs()` again on `/sys/fs/cgroup/unified/`. If that succeeds and reports
 `CGROUP2_SUPER_MAGIC` you are in hybrid mode, otherwise not.
+From a shell, you can use check the `Type` in `stat -f /sys/fs/cgroup` and
+`stat -f /sys/fs/cgroup/unified`.
 
 ## systemd's Unit Types