github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/debian/patches/engine-build-against-runc-1.0.patch (about) 1 replace uses of deprecated libcontainer/configs.Device 2 3 Origin: backport, https://github.com/moby/moby/commit/d414c0c1e8c487170b1d2f5af4946771645c6564 4 Last-Update: 2021-10-11 5 6 Index: docker/engine/oci/devices_linux.go 7 =================================================================== 8 --- docker.orig/engine/oci/devices_linux.go 9 +++ docker/engine/oci/devices_linux.go 10 @@ -6,13 +6,12 @@ import ( 11 "path/filepath" 12 "strings" 13 14 - "github.com/opencontainers/runc/libcontainer/configs" 15 "github.com/opencontainers/runc/libcontainer/devices" 16 specs "github.com/opencontainers/runtime-spec/specs-go" 17 ) 18 19 // Device transforms a libcontainer configs.Device to a specs.LinuxDevice object. 20 -func Device(d *configs.Device) specs.LinuxDevice { 21 +func Device(d *devices.Device) specs.LinuxDevice { 22 return specs.LinuxDevice{ 23 Type: string(d.Type), 24 Path: d.Path, 25 @@ -24,7 +23,7 @@ func Device(d *configs.Device) specs.Lin 26 } 27 } 28 29 -func deviceCgroup(d *configs.Device) specs.LinuxDeviceCgroup { 30 +func deviceCgroup(d *devices.Device) specs.LinuxDeviceCgroup { 31 return specs.LinuxDeviceCgroup{ 32 Allow: true, 33 Type: string(d.Type),