mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-04-03 12:20:46 +00:00
Merge a4956e65d0
into e33f15a128
This commit is contained in:
commit
2ac389f75c
@ -109,7 +109,8 @@ containerEdits:
|
|||||||
- ro
|
- ro
|
||||||
- nosuid
|
- nosuid
|
||||||
- nodev
|
- nodev
|
||||||
- bind
|
- rbind
|
||||||
|
- rprivate
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,8 @@ containerEdits:
|
|||||||
- ro
|
- ro
|
||||||
- nosuid
|
- nosuid
|
||||||
- nodev
|
- nodev
|
||||||
- bind
|
- rbind
|
||||||
|
- rprivate
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,8 @@ func TestIPCMounts(t *testing.T) {
|
|||||||
"ro",
|
"ro",
|
||||||
"nosuid",
|
"nosuid",
|
||||||
"nodev",
|
"nodev",
|
||||||
"bind",
|
"rbind",
|
||||||
|
"rprivate",
|
||||||
"noexec",
|
"noexec",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -71,7 +71,8 @@ func (d *mountsToContainerPath) Mounts() ([]Mount, error) {
|
|||||||
"ro",
|
"ro",
|
||||||
"nosuid",
|
"nosuid",
|
||||||
"nodev",
|
"nodev",
|
||||||
"bind",
|
"rbind",
|
||||||
|
"rprivate",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
mounts = append(mounts, mount)
|
mounts = append(mounts, mount)
|
||||||
|
@ -32,7 +32,8 @@ func TestMountsToContainerPath(t *testing.T) {
|
|||||||
"ro",
|
"ro",
|
||||||
"nosuid",
|
"nosuid",
|
||||||
"nodev",
|
"nodev",
|
||||||
"bind",
|
"rbind",
|
||||||
|
"rprivate",
|
||||||
}
|
}
|
||||||
|
|
||||||
testCases := []struct {
|
testCases := []struct {
|
||||||
|
@ -102,7 +102,8 @@ func (d *mounts) Mounts() ([]Mount, error) {
|
|||||||
"ro",
|
"ro",
|
||||||
"nosuid",
|
"nosuid",
|
||||||
"nodev",
|
"nodev",
|
||||||
"bind",
|
"rbind",
|
||||||
|
"rprivate",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,8 @@ func TestMounts(t *testing.T) {
|
|||||||
"ro",
|
"ro",
|
||||||
"nosuid",
|
"nosuid",
|
||||||
"nodev",
|
"nodev",
|
||||||
"bind",
|
"rbind",
|
||||||
|
"rprivate",
|
||||||
}
|
}
|
||||||
|
|
||||||
logger, logHook := testlog.NewNullLogger()
|
logger, logHook := testlog.NewNullLogger()
|
||||||
|
@ -79,12 +79,12 @@ func TestDiscovererFromCSVFiles(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
Options: []string{"ro", "nosuid", "nodev", "bind"},
|
Options: []string{"ro", "nosuid", "nodev", "rbind", "rprivate"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
Options: []string{"ro", "nosuid", "nodev", "bind"},
|
Options: []string{"ro", "nosuid", "nodev", "rbind", "rprivate"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
expectedHooks: []discover.Hook{
|
expectedHooks: []discover.Hook{
|
||||||
@ -135,12 +135,12 @@ func TestDiscovererFromCSVFiles(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
Options: []string{"ro", "nosuid", "nodev", "bind"},
|
Options: []string{"ro", "nosuid", "nodev", "rbind", "rprivate"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
Options: []string{"ro", "nosuid", "nodev", "bind"},
|
Options: []string{"ro", "nosuid", "nodev", "rbind", "rprivate"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
expectedHooks: []discover.Hook{
|
expectedHooks: []discover.Hook{
|
||||||
@ -175,7 +175,7 @@ func TestDiscovererFromCSVFiles(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
Path: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
HostPath: "/usr/lib/aarch64-linux-gnu/tegra/libv4l2_nvargus.so",
|
||||||
Options: []string{"ro", "nosuid", "nodev", "bind"},
|
Options: []string{"ro", "nosuid", "nodev", "rbind", "rprivate"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user