Skip to content

Commit

Permalink
Merge pull request containerd#10713 from wzshiming/enable-selinux-on-…
Browse files Browse the repository at this point in the history
…cri-test

Enable the selinux on cri test
  • Loading branch information
samuelkarp authored Sep 23, 2024
2 parents 906c232 + d720510 commit 2ca3ff8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/test/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ca3ff8

Please sign in to comment.