added a notification regarding configuration file

debian-releases/etch debian/0.5.4-5post1
Yaroslav Halchenko 2005-10-04 06:36:09 +00:00
parent 3d00eec62c
commit 555d12ece4
2 changed files with 28 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
fail2ban (0.5.4-5post1) unstable; urgency=low
* Added a notification regarding the importance of 0.5.4-5 change of
failregex in the config file
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 3 Oct 2005 22:26:28 -1000
fail2ban (0.5.4-5) unstable; urgency=low fail2ban (0.5.4-5) unstable; urgency=low
* Made failregex'es more specific to don't allow usernames to be used as a * Made failregex'es more specific to don't allow usernames to be used as a

21
debian/postinst vendored
View File

@ -16,12 +16,33 @@ set -e
# for details, see http://www.debian.org/doc/debian-policy/ or # for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package # the debian-policy package
# #
preversion=$2
case "$1" in case "$1" in
configure) configure)
# To fix the bug in generated by previous version files permissions # To fix the bug in generated by previous version files permissions
LOG=/var/log/fail2ban.log LOG=/var/log/fail2ban.log
[ -f $LOG ] && chmod go-w $LOG [ -f $LOG ] && chmod go-w $LOG
# Note regarding changed configuration file
if [ ! -z $preversion ] \
&& dpkg --compare-versions $preversion lt 0.5.4-5;
then
cat <<EOF
WARNING!
Configuration file /etc/fail2ban.conf, failregex configuration parameter
specificly, were changed in 0.5.4-5 to close reported security breach.
Unless configuration file (or corresponding failregex'es) gets updated,
security breach is not closed and corresponding warning will be reported
by the fail2ban (in the log files).
Please review the configuration file and make appropriate changes.
ENJOY!
EOF
fi
;; ;;
abort-upgrade|abort-remove|abort-deconfigure) abort-upgrade|abort-remove|abort-deconfigure)