Skip to content

subsystems list duplicated across files #1457

@yastij

Description

@yastij

as stated in runc/libcontainer/cgroups/rootless/rootless.go, we duplicate an array that contains a bunch of cgroups (duplicate : runc/libcontainer/cgroups/fs/apply_raw.go ) :

	subsystems = subsystemSet{
		&CpusetGroup{},
		&DevicesGroup{},
		&MemoryGroup{},
		&CpuGroup{},
		&CpuacctGroup{},
		&PidsGroup{},
		&BlkioGroup{},
		&HugetlbGroup{},
		&NetClsGroup{},
		&NetPrioGroup{},
		&PerfEventGroup{},
		&FreezerGroup{},
		&NameGroup{GroupName: "name=systemd", Join: true},
	}

if refactoring is needed, i can work on this one.
cc @cyphar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions