mirror of https://github.com/CISOfy/lynis.git
Override reading of files when we are root
This commit is contained in:
parent
290252b764
commit
9874530615
|
@ -739,8 +739,8 @@
|
||||||
LogText "Result: file is not owned by current user ID (${MYID}), but UID ${FILEOWNER}"
|
LogText "Result: file is not owned by current user ID (${MYID}), but UID ${FILEOWNER}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we have the read bit
|
# Check if we are root, or have the read bit
|
||||||
if [ "${OTHERPERMS}" = "r" ]; then
|
if [ "${MYID}" = "0" -o "${OTHERPERMS}" = "r" ]; then
|
||||||
CANREAD=1
|
CANREAD=1
|
||||||
return 0
|
return 0
|
||||||
LogText "Result: file ${sFILE} is readable (or directory accessible)."
|
LogText "Result: file ${sFILE} is readable (or directory accessible)."
|
||||||
|
|
Loading…
Reference in New Issue