ovh / debian-cis

PCI-DSS compliant Debian 10/11/12 hardening
Other
756 stars 130 forks source link

fix: 99.1.3_acc_sudoers_no_all: fix a race condition #186

Closed speed47 closed 1 year ago

speed47 commented 1 year ago

On systems where /etc/sudoers.d might be updated often by some automated means, this check might raise a critical when a previously present file (during the ls) is no longer present (during its attempted read), so before raising a critical, re-check that it does exists first.