diff options
author | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2018-10-14 22:15:18 +0200 |
---|---|---|
committer | Dominik Lisiak <dominik.lisiak@bemsoft.pl> | 2018-10-14 22:15:18 +0200 |
commit | 40fe374ce79a2a0df1ae63093ba689225cae6705 (patch) | |
tree | 9e216aef7e7eff11b0d5af5ed2b7663d19ed53fc /security/ossec-hids-local/files/patch-active-response_host-deny.sh | |
parent | Initial commit for version 3.0.0 (diff) | |
download | ossec-40fe374ce79a2a0df1ae63093ba689225cae6705.tar.xz |
Upgrade to 3.1.0.
Diffstat (limited to 'security/ossec-hids-local/files/patch-active-response_host-deny.sh')
-rw-r--r-- | security/ossec-hids-local/files/patch-active-response_host-deny.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/security/ossec-hids-local/files/patch-active-response_host-deny.sh b/security/ossec-hids-local/files/patch-active-response_host-deny.sh deleted file mode 100644 index aff6243..0000000 --- a/security/ossec-hids-local/files/patch-active-response_host-deny.sh +++ /dev/null @@ -1,15 +0,0 @@ ---- active-response/host-deny.sh.orig 2018-06-26 12:15:38 UTC -+++ active-response/host-deny.sh -@@ -126,10 +126,10 @@ if [ "x${ACTION}" = "xadd" ]; then - # Deleting from hosts.deny - elif [ "x${ACTION}" = "xdelete" ]; then - lock; -- TMP_FILE=`mktemp /var/ossec/ossec-hosts.XXXXXXXXXX` -+ TMP_FILE=`mktemp ${PWD}/ossec-hosts.XXXXXXXXXX` - if [ "X${TMP_FILE}" = "X" ]; then - # Cheap fake tmpfile, but should be harder then no random data -- TMP_FILE="/var/ossec/ossec-hosts.`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -1 `" -+ TMP_FILE="${PWD}/ossec-hosts.`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -1 `" - fi - echo "${IP}" | grep "\:" > /dev/null 2>&1 - if [ $? = 0 ]; then |