Enable the selinux on cri test

Signed-off-by: Shiming Zhang <wzshiming@hotmail.com>
This commit is contained in:
Shiming Zhang 2024-09-21 16:21:05 +08:00
parent a448047386
commit d72051036a

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