]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
comment fixups
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 7 Mar 2016 19:04:30 +0000 (11:04 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 7 Mar 2016 19:04:30 +0000 (11:04 -0800)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgfsng.c

index b4519b2b0bac3c8fe155f8085b552c326af93cfe..123303502bef9734418d8378dd412df92de2dadc 100644 (file)
@@ -648,6 +648,10 @@ static bool parse_hierarchies(struct cgfsng_handler_data *d)
        char **klist = NULL, **nlist = NULL;
        size_t len = 0;
 
+       /*
+        * Root spawned containers escape the current cgroup, so use init's
+        * cgroups as our base in that case.
+        */
        if (geteuid())
                basecginfo = read_file("/proc/self/cgroup");
        else
@@ -922,7 +926,7 @@ static void remove_path_for_hierarchy(struct hierarchy *h, char *cgname)
 }
 
 /*
- * Try to create the same cgrou pin all hierarchies.
+ * Try to create the same cgrouin all hierarchies.
  * Start with cgroup_pattern; next cgroup_pattern-1, -2, ..., -999
  */
 static inline bool cgfsng_create(void *hdata)