diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 12:18:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-30 12:18:00 +0000 |
commit | 0e1acfb131d62064355070faeaee736c76cd55ec (patch) | |
tree | add9dfca4e321aa492bcb97237ed909a833f4c84 | |
parent | a2afcdba6cf3840b35cf59b3df47040d00951e41 (diff) | |
download | msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar.gz msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar.bz2 msec-0e1acfb131d62064355070faeaee736c76cd55ec.tar.xz msec-0e1acfb131d62064355070faeaee736c76cd55ec.zip |
exclude /media from searching like /mnt is
-rwxr-xr-x | cron-sh/security.sh | 2 |
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" |