Red Hat OpenShift
TMA-OPENSHIFT-5.2.4
Minimize the admission of containers wishing to share the host network namespace
高级别 1人工审核openshift
说明
Do not generally permit containers to be run with the hostNetwork flag set to true. The benchmark marks this recommendation Manual.
检查方式
审计方法: 人工审核
此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。
Use the following command to list all SCCs with allowHostNetwork set to false: oc get scc -A -o json | jq '.items[] | select(.allowHostNetwork==false) | .metadata.name' Verify at least one SCC is returned.
修复方式
修复方法: 操作指南或基础设施补丁
Create an SCC that sets allowHostNetwork to false and take it into use by assigning it to applicable users and groups.
属性
- 操作系统
- 任意
- 标签
- openshiftpoliciespod-securitynetwork
- 参考
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 5.2.4 Minimize the admission of containers wishing to share the host network namespace