Hello community, here is the log from the commit of package fail2ban for openSUSE:Factory checked in at Mon Aug 2 11:47:23 CEST 2010. -------- --- fail2ban/fail2ban.changes 2010-05-05 19:13:28.000000000 +0200 +++ fail2ban/fail2ban.changes 2010-07-27 22:40:20.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Jul 27 20:39:41 UTC 2010 - cristian.rodriguez@opensuse.org + +- Use O_CLOEXEC on fds (patch from Fedora) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- fail2ban-0.8.2-fd_cloexec.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fail2ban.spec ++++++ --- /var/tmp/diff_new_pack.y1cRY3/_old 2010-08-02 11:46:35.000000000 +0200 +++ /var/tmp/diff_new_pack.y1cRY3/_new 2010-08-02 11:46:35.000000000 +0200 @@ -26,7 +26,7 @@ PreReq: %fillup_prereq AutoReqProv: on Version: 0.8.4 -Release: 2 +Release: 7 Url: http://www.fail2ban.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -34,6 +34,7 @@ Source0: http://download.sourceforge.net/sourceforge/fail2ban/%{name}-%{version}.tar.bz2 Source1: %{name}.init Source2: %{name}.sysconfig +Patch: fail2ban-0.8.2-fd_cloexec.patch %description Fail2ban scans log files like /var/log/messages and bans IP addresses @@ -51,6 +52,7 @@ %prep %setup perl -pi -e 's;/usr/local/;/usr/;g' files/suse-initd +%patch -p1 %build export CFLAGS="$RPM_OPT_FLAGS" ++++++ fail2ban-0.8.2-fd_cloexec.patch ++++++ --- fail2ban-0.8.2/server/filter.py.orig 2008-03-27 16:26:59.000000000 +0000 +++ fail2ban-0.8.2/server/filter.py 2008-03-27 15:29:48.000000000 +0000 @@ -428,6 +428,7 @@ # is computed and compared to the previous hash of this line. import md5 +import fcntl class FileContainer: @@ -455,6 +456,11 @@ def open(self): self.__handler = open(self.__filename) + + # Set the file descriptor to be FD_CLOEXEC + fd = self.__handler.fileno() + fcntl.fcntl (self.__handler.fileno(), fcntl.F_SETFD, fd | fcntl.FD_CLOEXEC) + firstLine = self.__handler.readline() # Computes the MD5 of the first line. myHash = md5.new(firstLine).digest() ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org