lynis icon indicating copy to clipboard operation
lynis copied to clipboard

Fixing "Security check failed" message for unprivileged mode. Issue 1383

Open xnoguer opened this issue 1 year ago • 0 comments

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.

xnoguer avatar Apr 20 '23 15:04 xnoguer