SV-257549r1137645_rule
V-257549
SRG-APP-000243-CTR-000600
CNTR-OS-000570
CAT II
10
Apply the machine config to disable virtual syscalls by executing the following:
for mcpool in $(oc get mcp -oname | sed "s:.*/::" ); do
echo "apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
name: 05-kernelarg-vsyscall-none-$mcpool
labels:
machineconfiguration.openshift.io/role: $mcpool
spec:
config:
ignition:
version: 3.1.0
kernelArguments:
- vsyscall=none
" | oc apply -f -
done
Check the current CoreOS boot loader configuration has virtual syscalls disabled by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; grep vsyscall=none boot/loader/entries/*.conf || echo "not found"' 2>/dev/null; done
If "vsyscall" is not set to "none" or returns "not found", this is a finding.
V-257549
False
CNTR-OS-000570
Check the current CoreOS boot loader configuration has virtual syscalls disabled by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; grep vsyscall=none boot/loader/entries/*.conf || echo "not found"' 2>/dev/null; done
If "vsyscall" is not set to "none" or returns "not found", this is a finding.
M
5547