aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-02-18 18:19:09 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-02-18 18:19:09 +0000
commit3a13616ce1be20bf55a5e0c7fd7043ca37bd97ad (patch)
tree619e8099ada1e299c11a62c9ff809827b029fbcc
parente282ddff61ec992533630f6940d3da73f940c962 (diff)
downloadmsec-3a13616ce1be20bf55a5e0c7fd7043ca37bd97ad.tar
msec-3a13616ce1be20bf55a5e0c7fd7043ca37bd97ad.tar.gz
msec-3a13616ce1be20bf55a5e0c7fd7043ca37bd97ad.tar.bz2
msec-3a13616ce1be20bf55a5e0c7fd7043ca37bd97ad.tar.xz
msec-3a13616ce1be20bf55a5e0c7fd7043ca37bd97ad.zip
ignore vmblock file systems during periodic checks
-rw-r--r--cron-sh/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh
index a95dd91..b094210 100644
--- a/cron-sh/functions.sh
+++ b/cron-sh/functions.sh
@@ -25,7 +25,7 @@ SECURITY_LOG="/var/log/security.log"
# Modified filters coming from debian security scripts.
# rootfs is not listed among excluded types, because
# / is mounted twice, and filtering it would mess with excluded dir list
-TYPE_FILTER='(devpts|sysfs|usbfs|tmpfs|binfmt_misc|rpc_pipefs|securityfs|auto|proc|msdos|fat|vfat|iso9660|ncpfs|smbfs|hfs|nfs|afs|coda|cifs|fuse.gvfs-fuse-daemon)'
+TYPE_FILTER='(devpts|sysfs|usbfs|tmpfs|binfmt_misc|rpc_pipefs|securityfs|auto|proc|msdos|fat|vfat|iso9660|ncpfs|smbfs|hfs|nfs|afs|coda|cifs|fuse.gvfs-fuse-daemon|vmblock)'
MOUNTPOINT_FILTER='^\/mnt|^\/media'
DIR=`awk '$3 !~ /'$TYPE_FILTER'/ && $2 !~ /'$MOUNTPOINT_FILTER'/ \
{print $2}' /proc/mounts | uniq`