From 3939a22a481a596049e7687cb1499f11c9000c86 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Sun, 31 Jan 2016 16:34:54 +0100 Subject: [PATCH] cgfs: prune the init scope from paths Just as cgmanager does, if we are calculating a task's paths, drop the trailing '/init.scope'. We don't want the container to sit under there. Signed-off-by: Serge Hallyn --- src/lxc/cgfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/cgfs.c b/src/lxc/cgfs.c index 963216956..b43e1ce01 100644 --- a/src/lxc/cgfs.c +++ b/src/lxc/cgfs.c @@ -1662,6 +1662,7 @@ lxc_cgroup_process_info_getx(const char *proc_pid_cgroup_str, entry->cgroup_path = strdup(colon2); if (!entry->cgroup_path) goto out_error; + prune_init_scope(entry->cgroup_path); *cptr = entry; cptr = &entry->next;