mirror of https://github.com/CISOfy/lynis.git
[LOGG-2190] added filter for MariaDB, tested onCentOS
This commit is contained in:
parent
c7eb855ff0
commit
21956cc42c
|
@ -479,7 +479,7 @@
|
|||
#
|
||||
# Test : LOGG-2190
|
||||
# Description : Checking deleted files
|
||||
if [ ! "${LSOFBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
if [ ! -z "${LSOFBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no LOGG-2190 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Checking for deleted files in use"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
EARLY_MYSQL=""
|
||||
|
@ -488,7 +488,11 @@
|
|||
LSOF_GREP="WARNING|Output information"
|
||||
|
||||
# MySQL versions prior to 5.6 leave lots of deleted in-use files in /tmp, ignoring those
|
||||
if [ ! -z "${DPKGBINARY}" ]; then EARLY_MYSQL=$(${DPKGBINARY} -l | ${EGREPBINARY} mysql-server-5.[0-5]); fi
|
||||
if [ ! -z "${DPKGBINARY}" ]; then
|
||||
EARLY_MYSQL=$(${DPKGBINARY} -l | ${EGREPBINARY} mysql-server-5.[0-5])
|
||||
elif [ ! -z "${RPMBINARY}" ]; then
|
||||
EARLY_MYSQL=$(${RPMBINARY} -qa mariadb | ${EGREPBINARY} mariadb-5.[0-5])
|
||||
fi
|
||||
if [ ! -z "${EARLY_MYSQL}" ]; then LSOF_GREP="${LSOF_GREP}|mysqld"; fi
|
||||
|
||||
# grsecurity causes Fail2Ban to hold onto deleted in-use files in /var/tmp
|
||||
|
|
Loading…
Reference in New Issue