Merge pull request #10713 from wzshiming/enable-selinux-on-cri-test
Enable the selinux on cri test
This commit is contained in:
commit
2ca3ff8725
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user