diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-02-04 03:26:43 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-02-04 03:26:43 +0000 |
commit | 90f2f188bbd0e8b842bcec0ba158ac5353d21b26 (patch) | |
tree | ce79da7584bbb6c7bc444e4a803583cefbfd44bc | |
parent | 00cb64fb03a52a4468b95d56dedff3e3c874f453 (diff) | |
download | msec-90f2f188bbd0e8b842bcec0ba158ac5353d21b26.tar msec-90f2f188bbd0e8b842bcec0ba158ac5353d21b26.tar.gz msec-90f2f188bbd0e8b842bcec0ba158ac5353d21b26.tar.bz2 msec-90f2f188bbd0e8b842bcec0ba158ac5353d21b26.tar.xz msec-90f2f188bbd0e8b842bcec0ba158ac5353d21b26.zip |
don't report /tmp and /var/tmp as word writable dirs (it's normal)
-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 6cc6b79..4cb0d12 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -108,7 +108,7 @@ if [[ -f ${SUID_GROUP_TODAY} ]]; then fi if [[ -f ${WRITEABLE_TODAY} ]]; then - sort < ${WRITEABLE_TODAY} > ${WRITEABLE_TODAY}.tmp + sort < ${WRITEABLE_TODAY} | egrep -v '^(/var)?/tmp$' > ${WRITEABLE_TODAY}.tmp mv -f ${WRITEABLE_TODAY}.tmp ${WRITEABLE_TODAY} fi |