SV-242454r961863_rule
V-242454
SRG-APP-000516-CTR-001325
CNTR-K8-003210
CAT II
10
Change the ownership of the kubeadm.conf to root: root by executing the command:
chown root:root <kubeadm.conf path>
Review the Kubeadm.conf file :
Get the path for Kubeadm.conf by running:
sytstemctl status kubelet
Note the configuration file installed by the kubeadm is written to
(Default Location: /etc/systemd/system/kubelet.service.d/10-kubeadm.conf)
stat -c %U:%G <kubeadm.conf path> | grep -v root:root
If the command returns any non root:root file permissions, this is a finding.
V-242454
False
CNTR-K8-003210
Review the Kubeadm.conf file :
Get the path for Kubeadm.conf by running:
sytstemctl status kubelet
Note the configuration file installed by the kubeadm is written to
(Default Location: /etc/systemd/system/kubelet.service.d/10-kubeadm.conf)
stat -c %U:%G <kubeadm.conf path> | grep -v root:root
If the command returns any non root:root file permissions, this is a finding.
M
5376