Enable the selinux on cri test
Signed-off-by: Shiming Zhang <wzshiming@hotmail.com>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Shiming Zhang
					Shiming Zhang