Skip to content

Commit

Permalink
tests/kola: use toolbox container image for selinux.podman-tmpfs-context
Browse files Browse the repository at this point in the history
In F40 the base container no longer includes `util-linux-core` so we
can't run the `mount` command. Let's just pull the toolbox container for
now, which does include it.
  • Loading branch information
aaradhak committed Apr 24, 2024
1 parent 560715d commit 5c9ec57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kola/selinux/podman-tmpfs-context
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -xeuo pipefail
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

context=$(podman run --rm --privileged quay.io/fedora/fedora:40 \
context=$(podman run --rm --privileged quay.io/fedora/fedora-toolbox:40 \
bash -c "mount -t tmpfs tmpfs /mnt/ && stat --format '%C' /mnt/")
if [ "$context" != "system_u:object_r:container_file_t:s0" ]; then
fatal "SELinux context for files on a tmpfs inside a container is wrong"
Expand Down

0 comments on commit 5c9ec57

Please sign in to comment.