mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Fix subsystem path with abs parent
Sometimes subsystem can be mounted to path like "subsystem1,subsystem2", so we need to handle this. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
@@ -256,7 +256,7 @@ func (raw *data) path(subsystem string) (string, error) {
|
||||
|
||||
// If the cgroup name/path is absolute do not look relative to the cgroup of the init process.
|
||||
if filepath.IsAbs(raw.cgroup) {
|
||||
return filepath.Join(raw.root, subsystem, raw.cgroup), nil
|
||||
return filepath.Join(raw.root, filepath.Base(mnt), raw.cgroup), nil
|
||||
}
|
||||
|
||||
parent, err := raw.parent(subsystem, mnt, src)
|
||||
|
||||
Reference in New Issue
Block a user