Merge pull request #10713 from wzshiming/enable-selinux-on-cri-test

Enable the selinux on cri test
This commit is contained in:
Samuel Karp
2024-09-23 17:44:05 +00:00
committed by GitHub

View File

@@ -52,7 +52,14 @@ version=2
[plugins."io.containerd.grpc.v1.cri"]
drain_exec_sync_io_timeout = "10s"
EOF
if command -v sestatus >/dev/null 2>&1; then
cat >>${config_file} <<EOF
enable_selinux = true
EOF
fi
cat >>${config_file} <<EOF
# Userns requires idmap mount support for overlayfs (added in 5.19)
# Let's opt-in for a recursive chown, so we can always test this even in old distros.
# Note that if idmap mounts support is present, we will use that, so it is harmless to keep this