Open
Description
There is a set of functions (DeviceFromPath
, HostDevices
, GetDevices
) which are copied across a few repos, in some cases with minor changes:
- https://github.com/opencontainers/runc/blob/main/libcontainer/devices/device_unix.go (not used by runc itself, used by containers/common, containers/buildah, cri-o, microsoft/hcsshim);
- https://github.com/containerd/containerd/blob/main/pkg/oci/utils_unix.go (used mostly from containerd and moby)
- https://github.com/containers/podman/blob/main/pkg/util/utils_linux.go (used from containers/*)
So, main users are moby/moby, cri-o/cri-o, containerd, faasd, microsoft/hcsshim, containers/*, etc.
I propose to create moby/sys/devices
, figure out the implementation which will suit all the users, and add it there.
Metadata
Metadata
Assignees
Labels
No labels