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