diff options
author | Eric Light <eric@ericlight.com> | 2016-08-18 16:09:59 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-08-18 16:09:59 +0300 |
commit | b1bf319f18a9c6a6f22c15773bb19a624d94a03b (patch) | |
tree | 64f0e69addbab100e23bb53f91c0ba6b4c133e22 /include/tests_logging | |
parent | d23085f29fd1c632e29b7cfa8ca59c750f7b5e61 (diff) |
Filter out open+deleted files held by MySQL <5.6 (#210)
Resolves #209
Diffstat (limited to 'include/tests_logging')
-rw-r--r-- | include/tests_logging | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tests_logging b/include/tests_logging index a5f74a74..a7f883a8 100644 --- a/include/tests_logging +++ b/include/tests_logging @@ -477,6 +477,14 @@ LogText "Test: checking deleted files that are still in use" LSOF_GREP="WARNING|Output information" + + EARLY_MYSQL=`dpkg -l | egrep mysql-server-5.[0-5]` + + if [ ! "${EARLY_MYSQL}" = "" ]; then + # MySQL versions prior to 5.6 leave lots of deleted in-use files in /tmp + LSOF_GREP="${LSOF_GREP}|mysqld" + fi + if [ ${GRSEC_FOUND} -eq 1 ]; then # grsecurity causes Fail2Ban to hold onto deleted in-use files in /var/tmp LSOF_GREP="${LSOF_GREP}|fail2ban" |