Skip to content

Commit edcbcfd

Browse files
Merge pull request #14710 from openshift-cherrypick-robot/cherry-pick-14613-to-v4.1.1-rhel
[v4.1.1-rhel] test/system/410-selinux: fix for newer runc
2 parents 79e0d14 + 33e7cf2 commit edcbcfd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/system/410-selinux.bats

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ function check_label() {
205205
# from /proc/thread-self/attr/exec`: .* unable to assign
206206
# to /proc/self/attr/keycreate`: .* unable to process
207207
crun) expect="\`/proc/.*\`: OCI runtime error: unable to \(assign\|process\) security attribute" ;;
208-
runc) expect="OCI runtime error: .*: failed to set /proc/self/attr/keycreate on procfs" ;;
208+
# runc 1.1 changed the error message because of new selinux pkg that uses standard os.PathError, see
209+
# https://github.com/opencontainers/selinux/pull/148/commits/a5dc47f74c56922d58ead05d1fdcc5f7f52d5f4e
210+
# from failed to set /proc/self/attr/keycreate on procfs
211+
# to write /proc/self/attr/keycreate: invalid argument
212+
runc) expect="OCI runtime error: .*: \(failed to set|write\) /proc/self/attr/keycreate" ;;
209213
*) skip "Unknown runtime '$runtime'";;
210214
esac
211215

0 commit comments

Comments
 (0)