test: skip ctr device add with userNS
@@ -627,6 +627,11 @@ function teardown() {
}
@test "ctr device add" {
+ # In an user namespace we can only bind mount devices from the host, not mknod
+ # https://github.com/opencontainers/runc/blob/master/libcontainer/rootfs_linux.go#L480-L481
+ if test -n "$UID_MAPPINGS"; then
+ skip "userNS enabled"
+ fi
start_crio
run crictl runp "$TESTDATA"/sandbox_config.json
echo "$output"
