lynis
lynis copied to clipboard
Fixing "Security check failed" message for unprivileged mode. Issue 1383
Making sure that the "Security check failed" message is also shown when running in non-privileged mode (not root). A few notes:
- I included data_upload among the 6 files to be checked, but I cannot test it.
- I added a check in the function SafeFile(), only for non-privileged mode. Didn't want to add a new function for the checks of this section of code (lines 147 to 214) because it seemed to disruptive to me, and would have created a chicken and egg problem in line 218 (". ${INCLUDEDIR}/functions").
- I tested this in Debian 11.