github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/libcontainer/cgroups/devices/devices.go (about) 1 // Package devices contains functionality to manage cgroup devices, which 2 // is exposed indirectly via libcontainer/cgroups managers. 3 // 4 // To enable cgroup managers to manage devices, this package must be imported. 5 package devices 6 7 import ( 8 "github.com/opencontainers/runc/libcontainer/cgroups" 9 "github.com/opencontainers/runc/libcontainer/cgroups/systemd" 10 ) 11 12 func init() { 13 cgroups.DevicesSetV1 = setV1 14 cgroups.DevicesSetV2 = setV2 15 systemd.GenerateDeviceProps = systemdProperties 16 }