security: Fix access denied for user daemon from cron

When 'restrict console logins' is activated, debsecan hourly cron jobs fail
because the 'daemon' user is not allowed to run cron jobs. Add rule to the
login access control file to allow 'daemon' user to run cron jobs.

Fixes #1770

Tested that after I copied the file to /etc/security/access.d/10freedombox-security.conf,
there are no more debsecan cron job errors in the journalctl logs.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Fioddor Superconcentrado <fioddor@gmail.com>
This commit is contained in:
Veiko Aasa authored and Fioddor Superconcentrado committed 2020-12-28 15:46:37 +01:00
1 parent 79acc9b918
commit 6665052fe8
1 file changed
+2
@@ -0,0 +1,2 @@
# allow debsecan cron job
+:daemon:cron