TMAegisBeta
更多 openshift 规则

Red Hat OpenShift

TMA-OPENSHIFT-5.2.2

Minimize the admission of containers wishing to share the host process ID namespace

高级别 1人工审核openshift

说明

Do not generally permit containers to be run with the hostPID flag set to true. The benchmark marks this recommendation Manual.

检查方式

审计方法: 人工审核

此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。

Use the following command to list all SCCs with allowHostPID set to true: oc get scc -o json | jq '.items[] | select(.allowHostPID) | .metadata.name' Verify that at least one SCC is returned.

修复方式

修复方法: 操作指南或基础设施补丁

Create an SCC that sets allowHostPID to false and take it into use by assigning it to applicable users and groups.

属性

操作系统
任意
标签
openshiftpoliciespod-security
参考
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 5.2.2 Minimize the admission of containers wishing to share the host process ID namespace