mirror of https://github.com/CISOfy/lynis.git
Restrict find action to the /tmp mount
This commit is contained in:
parent
d3202ade5d
commit
751c9734c5
|
@ -298,7 +298,7 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Searching for old files in /tmp"
|
||||
# Search for files only in /tmp, with an access time older than X days
|
||||
FIND=`find /tmp -type f -atime +${TMP_OLD_DAYS} 2> /dev/null | sed 's/ /!space!/g'`
|
||||
FIND=`find /tmp -xdev -type f -atime +${TMP_OLD_DAYS} | sed 's/ /!space!/g'`
|
||||
if [ "${FIND}" = "" ]; then
|
||||
Display --indent 2 --text "- Checking for old files in /tmp" --result OK --color GREEN
|
||||
LogText "Result: no files found in /tmp which are older than 3 months"
|
||||
|
|
Loading…
Reference in New Issue