Files
Davanum Srinivas 4d8a83b428 Update dependencies used by sig-node
This change updates four dependencies:

- github.com/containerd/containerd/api from v1.11.0 to v1.11.1
- github.com/cyphar/filepath-securejoin from v0.6.1 to v0.7.0
- github.com/opencontainers/cgroups from v0.0.6 to v0.0.7
- github.com/opencontainers/selinux from v1.13.1 to v1.15.1

The new filepath-securejoin release requires a newer version of
cyphar.com/go-pathrs, so that module also moves from v0.2.2 to v0.2.5.
The file hack/unwanted-dependencies.json did not need any changes.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-07-16 08:14:43 +05:30

37 lines
683 B
Go

package fs
import (
"github.com/opencontainers/cgroups"
)
type NameGroup struct {
GroupName string
Join bool
GroupID cgroups.Controller
}
func (s *NameGroup) Name() string {
return s.GroupName
}
// ID returns the controller ID for named subsystem.
func (s *NameGroup) ID() cgroups.Controller {
return s.GroupID
}
func (s *NameGroup) Apply(path string, _ *cgroups.Resources, pid int) error {
if s.Join {
// Ignore errors if the named cgroup does not exist.
_ = apply(path, pid)
}
return nil
}
func (s *NameGroup) Set(_ string, _ *cgroups.Resources) error {
return nil
}
func (s *NameGroup) GetStats(path string, stats *cgroups.Stats) error {
return nil
}