Merge pull request #5122 from mythi/non-root-containers-and-devices-v2

cri: Devices ownership from SecurityContext
This commit is contained in:
Mike Brown
2021-08-31 16:11:18 -05:00
committed by GitHub
5 changed files with 115 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ func WithHostDevices(_ context.Context, _ Client, _ *containers.Container, s *Sp
return nil
}
// WithDevices recursively adds devices from the passed in path and associated cgroup rules for that device.
// WithDevices recursively adds devices from the passed in path.
// If devicePath is a dir it traverses the dir to add all devices in that dir.
// If devicePath is not a dir, it attempts to add the single device.
func WithDevices(devicePath, containerPath, permissions string) SpecOpts {