Closed nodiscc closed 5 months ago
/cc @mboelen
@nodiscc Can you test whether pull request #1406 fixes this ?
Thank you @xnoguer, your patch seems to fix the problem. Posted a review in https://github.com/CISOfy/lynis/pull/1406
Closing after testing by @nodiscc and pull request is merged.
Describe the bug
PKGS-7370 checks for the existence of the
debsums
binary, and a corresponding cron job in/etc/cron*
.If the cron job is not properly configured, it is meant to report a suggestion
Check debsums configuration and enable checking regularly via a cron job."
Installing the
debsums
package on a Debian 11 system clears these suggestions, letting the user think that this item is correctly hardened but in the default Debian configuration,debsums
actually never runs from cron:Notice it sources
/etc/default/debsums
and only runs ifCRON_CHECK
=daily
. The same goes for/etc/cron.weekly/debsums
and/etc/cron.monthly/debsums
. But the default value forCRON_CHECK
isnever
:Version
Expected behavior
The check should return a suggestion/warning when OK when
CRON_CHECK
is not one ofdaily, weekly, monthly
(similar toCheck debsums configuration and enable checking regularly via a cron job.)
Output