mirror of https://github.com/CISOfy/lynis.git
[LOGG-2190] skip mysqld related entries
This commit is contained in:
parent
c309ad7bdc
commit
4432f93044
|
@ -534,12 +534,7 @@
|
|||
LSOF_GREP="WARNING|Output information"
|
||||
|
||||
# MySQL versions prior to 5.6 leave lots of deleted in-use files in /tmp, ignoring those
|
||||
if [ -n "${DPKGBINARY}" ]; then
|
||||
EARLY_MYSQL=$(${DPKGBINARY} -l | ${EGREPBINARY} mysql-server-5.[0-5])
|
||||
elif [ -n "${RPMBINARY}" ]; then
|
||||
EARLY_MYSQL=$(${RPMBINARY} -qa mariadb | ${EGREPBINARY} mariadb-5.[0-5])
|
||||
fi
|
||||
if [ -n "${EARLY_MYSQL}" ]; then LSOF_GREP="${LSOF_GREP}|mysqld"; fi
|
||||
LSOF_GREP="${LSOF_GREP}|mysqld"
|
||||
|
||||
# grsecurity causes Fail2Ban to hold onto deleted in-use files in /var/tmp
|
||||
if [ ${GRSEC_FOUND} -eq 1 ]; then LSOF_GREP="${LSOF_GREP}|fail2ban"; fi
|
||||
|
|
Loading…
Reference in New Issue