Skip to content

Commit

Permalink
Description: Fixing host-deny script to do not change the selinux con…
Browse files Browse the repository at this point in the history
…text.

Reviewed by: dcid
Bug:
  • Loading branch information
dcid committed Jun 11, 2008
1 parent 1789772 commit 55dbd3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion active-response/host-deny.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ elif [ "x${ACTION}" = "xdelete" ]; then
mv /tmp/hosts.deny.$$ /etc/hosts.allow
else
cat /etc/hosts.deny | grep -v "ALL:${IP}$"> /tmp/hosts.deny.$$
mv /tmp/hosts.deny.$$ /etc/hosts.deny
cat /tmp/hosts.deny.$$ > /etc/hosts.deny
rm /tmp/hosts.deny.$$
fi
unlock;
exit 0;
Expand Down

0 comments on commit 55dbd3a

Please sign in to comment.