|
122 | 122 |
|
123 | 123 | # bats test_tags=ci:parallel |
124 | 124 | @test "podman run - uidmapping has no /sys/kernel mounts" { |
125 | | - skip_if_cgroupsv1 "run --uidmap fails on cgroups v1 (issue 15025, wontfix)" |
126 | 125 | skip_if_rootless "cannot umount as rootless" |
127 | 126 |
|
128 | 127 | run_podman run --rm --uidmap 0:100:10000 $IMAGE mount |
@@ -1081,7 +1080,6 @@ EOF |
1081 | 1080 | # rhbz#1902979 : podman run fails to update /etc/hosts when --uidmap is provided |
1082 | 1081 | # bats test_tags=ci:parallel |
1083 | 1082 | @test "podman run update /etc/hosts" { |
1084 | | - skip_if_cgroupsv1 "run --uidmap fails on cgroups v1 (issue 15025, wontfix)" |
1085 | 1083 | HOST=$(random_string 25) |
1086 | 1084 | run_podman run --uidmap 0:10001:10002 --rm --hostname ${HOST} $IMAGE grep ${HOST} /etc/hosts |
1087 | 1085 | is "${lines[0]}" ".*${HOST}.*" |
@@ -1451,21 +1449,13 @@ EOF |
1451 | 1449 |
|
1452 | 1450 | # bats test_tags=ci:parallel |
1453 | 1451 | @test "podman run --net=host --cgroupns=host with read only cgroupfs" { |
1454 | | - skip_if_rootless_cgroupsv1 |
| 1452 | + # verify that the last /sys/fs/cgroup mount is read-only |
| 1453 | + run_podman run --net=host --cgroupns=host --rm $IMAGE sh -c "grep ' / /sys/fs/cgroup ' /proc/self/mountinfo | tail -n 1" |
| 1454 | + assert "$output" =~ "/sys/fs/cgroup ro" |
1455 | 1455 |
|
1456 | | - if is_cgroupsv1; then |
1457 | | - # verify that the memory controller is mounted read-only |
1458 | | - run_podman run --net=host --cgroupns=host --rm $IMAGE cat /proc/self/mountinfo |
1459 | | - assert "$output" =~ "/sys/fs/cgroup/memory ro.* cgroup cgroup" |
1460 | | - else |
1461 | | - # verify that the last /sys/fs/cgroup mount is read-only |
1462 | | - run_podman run --net=host --cgroupns=host --rm $IMAGE sh -c "grep ' / /sys/fs/cgroup ' /proc/self/mountinfo | tail -n 1" |
1463 | | - assert "$output" =~ "/sys/fs/cgroup ro" |
1464 | | - |
1465 | | - # verify that it works also with a cgroupns |
1466 | | - run_podman run --net=host --cgroupns=private --rm $IMAGE sh -c "grep ' / /sys/fs/cgroup ' /proc/self/mountinfo | tail -n 1" |
1467 | | - assert "$output" =~ "/sys/fs/cgroup ro" |
1468 | | - fi |
| 1456 | + # verify that it works also with a cgroupns |
| 1457 | + run_podman run --net=host --cgroupns=private --rm $IMAGE sh -c "grep ' / /sys/fs/cgroup ' /proc/self/mountinfo | tail -n 1" |
| 1458 | + assert "$output" =~ "/sys/fs/cgroup ro" |
1469 | 1459 | } |
1470 | 1460 |
|
1471 | 1461 | # bats test_tags=ci:parallel |
|
0 commit comments