aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-30 12:18:00 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-30 12:18:00 +0000
commit0e1acfb131d62064355070faeaee736c76cd55ec (patch)
treeadd9dfca4e321aa492bcb97237ed909a833f4c84 /cron-sh
parenta2afcdba6cf3840b35cf59b3df47040d00951e41 (diff)
downloadmsec-0e1acfb131d62064355070faeaee736c76cd55ec.tar
msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar.gz
msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar.bz2
msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar.xz
msec-0e1acfb131d62064355070faeaee736c76cd55ec.zip
exclude /media from searching like /mnt is
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 0ed6717..c090b94 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -76,7 +76,7 @@ export EXCLUDE_REGEXP
# 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)'
-MOUNTPOINT_FILTER='^\/mnt'
+MOUNTPOINT_FILTER='^\/mnt|^\/media'
DIR=`awk '$3 !~ /'$TYPE_FILTER'/ && $2 !~ /'$MOUNTPOINT_FILTER'/ \
{print $2}' /proc/mounts | uniq`
PRINT="%h/%f\n"