diff options
-rw-r--r-- | sd_login/notes.org | 3 | ||||
-rw-r--r-- | sd_login/systemd_cgroup.go | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sd_login/notes.org b/sd_login/notes.org index 38e866b..91a237a 100644 --- a/sd_login/notes.org +++ b/sd_login/notes.org @@ -38,7 +38,8 @@ tree, where the unit matches either `user@UID.service` or A container may nest its cgroup tree inside of a unit also. Because the container will have its own PID namespace, it will have its own PID 1, and be able to inspect the cgroup of PID 1, just as the host -system does. +system does (though it is probably wiser to use cgroup namespaces to +make it appear that the prefix is the root). | Thing | | | diff --git a/sd_login/systemd_cgroup.go b/sd_login/systemd_cgroup.go index 6c64525..5f25231 100644 --- a/sd_login/systemd_cgroup.go +++ b/sd_login/systemd_cgroup.go @@ -61,7 +61,7 @@ func cgVersion() uint { // is obvious. // // However, in cgroup v1, there were multiple cgroup hierarchies, so -// this function must decide which hierarchy to use. We chooses the +// this function must decide which hierarchy to use. We choose the // first hierarchy with either the "name=systemd" controller or the // "name=elogind" controller attached to it[1]. If no such hierarchy // exists, then an error is returned. |