Skip to content

Commit 2ca3ff8

Browse files
authored
Merge pull request containerd#10713 from wzshiming/enable-selinux-on-cri-test
Enable the selinux on cri test
2 parents 906c232 + d720510 commit 2ca3ff8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

script/test/utils.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ version=2
5252
5353
[plugins."io.containerd.grpc.v1.cri"]
5454
drain_exec_sync_io_timeout = "10s"
55+
EOF
56+
if command -v sestatus >/dev/null 2>&1; then
57+
cat >>${config_file} <<EOF
58+
enable_selinux = true
59+
EOF
60+
fi
5561

62+
cat >>${config_file} <<EOF
5663
# Userns requires idmap mount support for overlayfs (added in 5.19)
5764
# Let's opt-in for a recursive chown, so we can always test this even in old distros.
5865
# Note that if idmap mounts support is present, we will use that, so it is harmless to keep this

0 commit comments

Comments
 (0)