|
@@ -17,7 +17,6 @@ import (
|
|
"github.com/docker/docker/integration/internal/container"
|
|
"github.com/docker/docker/integration/internal/container"
|
|
net "github.com/docker/docker/integration/internal/network"
|
|
net "github.com/docker/docker/integration/internal/network"
|
|
"github.com/docker/docker/pkg/stdcopy"
|
|
"github.com/docker/docker/pkg/stdcopy"
|
|
- "github.com/docker/docker/pkg/system"
|
|
|
|
"github.com/docker/docker/testutil/daemon"
|
|
"github.com/docker/docker/testutil/daemon"
|
|
"golang.org/x/sys/unix"
|
|
"golang.org/x/sys/unix"
|
|
"gotest.tools/v3/assert"
|
|
"gotest.tools/v3/assert"
|
|
@@ -155,7 +154,7 @@ func TestPrivilegedHostDevices(t *testing.T) {
|
|
)
|
|
)
|
|
|
|
|
|
// Create Null devices.
|
|
// Create Null devices.
|
|
- if err := system.Mknod(devTest, unix.S_IFCHR|0o600, int(system.Mkdev(1, 3))); err != nil {
|
|
|
|
|
|
+ if err := unix.Mknod(devTest, unix.S_IFCHR|0o600, int(unix.Mkdev(1, 3))); err != nil {
|
|
t.Fatal(err)
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
defer os.Remove(devTest)
|
|
defer os.Remove(devTest)
|
|
@@ -163,7 +162,7 @@ func TestPrivilegedHostDevices(t *testing.T) {
|
|
t.Fatal(err)
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
defer os.RemoveAll(filepath.Dir(devRootOnlyTest))
|
|
defer os.RemoveAll(filepath.Dir(devRootOnlyTest))
|
|
- if err := system.Mknod(devRootOnlyTest, unix.S_IFCHR|0o600, int(system.Mkdev(1, 3))); err != nil {
|
|
|
|
|
|
+ if err := unix.Mknod(devRootOnlyTest, unix.S_IFCHR|0o600, int(unix.Mkdev(1, 3))); err != nil {
|
|
t.Fatal(err)
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
defer os.Remove(devRootOnlyTest)
|
|
defer os.Remove(devRootOnlyTest)
|