aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-02-21 13:34:06 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-02-21 13:34:06 +0000
commitccfa055b51d33154c8106da75a78aa183f135f1a (patch)
tree9bb350d222fa5a5e981d755b1b31f95a419f6ff8 /cron-sh/security.sh
parent82a6400cb0c72d3eb1ab9f40a79265d1bb798055 (diff)
downloadmsec-ccfa055b51d33154c8106da75a78aa183f135f1a.tar
msec-ccfa055b51d33154c8106da75a78aa183f135f1a.tar.gz
msec-ccfa055b51d33154c8106da75a78aa183f135f1a.tar.bz2
msec-ccfa055b51d33154c8106da75a78aa183f135f1a.tar.xz
msec-ccfa055b51d33154c8106da75a78aa183f135f1a.zip
filter home dir too (Guillaume Rousse, bug #12335)
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 4aee135..1da3ef0 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -69,6 +69,7 @@ RPM_QA_YESTERDAY="/var/log/security/rpm-qa.yesterday"
RPM_QA_DIFF="/var/log/security/rpm-qa.diff"
export CHKROOTKIT_TODAY="/var/log/security/chkrootkit.today"
CHKROOTKIT_YESTERDAY="/var/log/security/chkrootkit.yesterday"
+export EXCLUDE_REGEXP
# Modified filters coming from debian security scripts.
CS_NFSAFS='(nfs|afs|coda)'
@@ -78,6 +79,8 @@ CS_DIRS='on /mnt'
FILTERS="$CS_TYPES|$CS_DEVS|$CS_DIRS"
DIR=`mount | grep -vE "$FILTERS" | cut -d ' ' -f3`
PRINT="%h/%f\n"
+EXCLUDEDIR=`mount | grep -E "$FILTERS" | cut -d ' ' -f3`
+export EXCLUDEDIR
if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security