Red Hat OpenShift
TMA-OPENSHIFT-5.2.9
Minimize the admission of containers with capabilities assigned
OrtaDüzey 2Manuel incelemeopenshift
Açıklama
Do not generally permit containers with capabilities. The benchmark marks this recommendation Manual.
Nasıl denetlenir
Denetim yöntemi: Manuel inceleme
Bu öneri otomatik olarak denetlenemez. --include-manual parametresini verdiğinizde tarama bunu bu talimatlarla birlikte listeler.
Use the following command to list SCCs that drop all capabilities from containers: oc get scc -A -o json | jq '.items[] | select(.requiredDropCapabilities[]?|any(. == "ALL"; .)) | .metadata.name' Verify at least one SCC is returned.
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
Review the use of capabilities in applications running on your cluster. Where a namespace contains applications which do not require any Linux capabilities to operate, consider adding a SCC which forbids the admission of containers which do not drop all capabilities.
Özellikler
- İşletim sistemleri
- Herhangi biri
- Etiketler
- openshiftpoliciespod-security
- Referans
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 5.2.9 Minimize the admission of containers with capabilities assigned