Skip to content

Commit 8bebdba

Browse files
authored
Merge pull request #4456 from kolyshkin/misc-ci-cleanups
Misc tests/int cleanups
2 parents d1b0ae6 + ff77536 commit 8bebdba

File tree

3 files changed

+6
-32
lines changed

3 files changed

+6
-32
lines changed

tests/integration/helpers.bash

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -771,25 +771,15 @@ function requires_idmap_fs() {
771771
;;
772772
*operation\ not\ permitted)
773773
if uname -r | grep -q el9; then
774-
# centos kernel 5.14.0-200 does not permit using ID map mounts due to a
775-
# specific patch added to their sources:
774+
# Older EL9 kernels did not permit using ID map mounts
775+
# due to a specific patch added to their sources:
776776
# https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/131
777777
#
778-
# There doesn't seem to be any technical reason behind
779-
# it, none was provided in numerous examples, like:
780-
# https://lore.kernel.org/lkml/[email protected]/T/#m3a9df31aa183e8797c70bc193040adfd601399ad
781-
# https://lore.kernel.org/lkml/[email protected]/T/#m59cdad9630d5a279aeecd0c1f117115144bc15eb
782-
# https://lore.kernel.org/lkml/[email protected]
783-
# https://lore.kernel.org/lkml/20210510125147.tkgeurcindldiwxg@wittgenstein
778+
# That patch was reverted in:
779+
# https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2179
784780
#
785-
# So, sadly we just need to skip this on centos.
786-
#
787-
# TODO Nonetheless, there are ongoing works to revert the patch
788-
# deactivating ID map mounts:
789-
# https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2179/diffs?commit_id=06f4fe946394cb94d2cf274aa7f3091d8f8469dc
790-
# Once this patch is merge, we should be able to remove the below skip
791-
# if the revert is backported or if CI centos kernel is upgraded.
792-
skip "sadly, centos kernel 5.14 does not permit using ID map mounts"
781+
# The above revert is included into the kernel 5.14.0-334.el9.
782+
skip "Needs kernel >= 5.14.0-334.el9"
793783
fi
794784
;;
795785
esac

tests/integration/run.bats

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ function teardown() {
128128
}
129129

130130
@test "RUNC_DMZ=true runc run [runc-dmz]" {
131-
# centos-7 has an outdated container-selinux (<2.224.0) which means
132-
# runc-dmz won't work.
133-
exclude_os centos-7
134-
135131
RUNC_DMZ=true runc --debug run test_hello
136132
[ "$status" -eq 0 ]
137133
[[ "$output" = *"Hello World"* ]]
@@ -140,10 +136,6 @@ function teardown() {
140136
}
141137

142138
@test "RUNC_DMZ=true runc run [cap_sys_ptrace -> /proc/self/exe clone]" {
143-
# centos-7 has an outdated container-selinux (<2.224.0) which means
144-
# runc-dmz won't work.
145-
exclude_os centos-7
146-
147139
# Add CAP_SYS_PTRACE to the bounding set, the minimum needed to indicate a
148140
# container process _could_ get CAP_SYS_PTRACE.
149141
update_config '.process.capabilities.bounding += ["CAP_SYS_PTRACE"]'
@@ -240,10 +232,6 @@ function teardown() {
240232
}
241233

242234
@test "RUNC_DMZ=true runc run [exec error]" {
243-
# centos-7 has an outdated container-selinux (<2.224.0) which means
244-
# runc-dmz won't work.
245-
exclude_os centos-7
246-
247235
cat <<EOF >rootfs/run.sh
248236
#!/mmnnttbb foo bar
249237
sh

tests/integration/selinux.bats

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ function teardown() {
4040

4141
# https://github.com/opencontainers/runc/issues/4057
4242
@test "runc run (custom selinux label, RUNC_DMZ=true)" {
43-
# centos-7 has an outdated container-selinux (<2.224.0) which means
44-
# runc-dmz won't work.
45-
exclude_os centos-7
46-
4743
update_config ' .process.selinuxLabel |= "system_u:system_r:container_t:s0:c4,c5"
4844
| .process.args = ["/bin/true"]'
4945
RUNC_DMZ=true runc run tst

0 commit comments

Comments
 (0)