1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

tests/kola: use toolbox container image for selinux.podman-tmpfs-context

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.
This commit is contained in:
Aashish Radhakrishnan
2024-04-23 23:10:30 -04:00
parent 560715d634
commit 5c9ec57af9

View File

@@ -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"