Skip to content

Cgroup paths containing ":" are not supported #353

@elezar

Description

@elezar

Considering

fields := strings.Split(cgroupStr, ":")
it is clear that if the path contains additional ":" characters, the path will be truncated.

Colons may be inserted, for example when running kubernetes with containerd using a systemd cgroup-driver.

See:

And how containerd parses the file: https://github.com/containerd/cgroups/blob/8a68de567b68b30602948417a7a8e99ccf00ee9b/utils.go#L305

Changing:

	fields := strings.Split(cgroupStr, ":")

to

	fields := strings.SplitN(cgroupStr, ":", 3)

should address this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions