mirror of https://github.com/CISOfy/lynis.git
Log when a file is world-writable according IsWorldWritable
This commit is contained in:
parent
4791b8a6bf
commit
2cefdb79d6
|
@ -1185,7 +1185,7 @@
|
|||
# Only check the file if it isn't a symlink (after previous check)
|
||||
if [ -f ${sFILE} -a ! -L ${sFILE} ]; then
|
||||
FINDVAL=`ls -l ${sFILE} | cut -c 9`
|
||||
if [ "${FINDVAL}" = "w" ]; then return 0; else return 1; fi
|
||||
if [ "${FINDVAL}" = "w" ]; then return 0; LogText "IsWorldWritable: file ${sFILE} is world-writable"; else return 1; fi
|
||||
else
|
||||
return 255
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue