Skip to content

Commit 2b28b3c

Browse files
committed
Always use cgroup root of current process
Because for host PID namespace /proc/1/cgroup can point to whole other world of cgroups. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
1 parent 5aa6005 commit 2b28b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/cgroups/fs/apply_raw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func getCgroupData(c *configs.Cgroup, pid int) (*data, error) {
236236
}
237237

238238
func (raw *data) parent(subsystem, mountpoint, src string) (string, error) {
239-
initPath, err := cgroups.GetInitCgroupDir(subsystem)
239+
initPath, err := cgroups.GetThisCgroupDir(subsystem)
240240
if err != nil {
241241
return "", err
242242
}

0 commit comments

Comments
 (0)