From 6d53cdd57ae77a0588b15219cfa0520c670c0f5e91034ef97db2c339471e297f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 25 Mar 2024 15:29:32 +0000 Subject: [PATCH] Accepting request 1159112 from home:mnhauke - Update to version 2.6.11 * Seed random() at least a bit before using random(). * Fix two erroneous calls to strlcat(). * Use execvp() instead of execvpe(). * Use HTTP/1.1 when communicating over HTTP. * khorben/coverity/1355235 TOCTOU. * Include systemd unit files in tarballs. * Remove obsolete @setcontentsaftertitlepage command. * Fix snprintf buffer length. * Soften the message when the stanza is not the correct one. * Add missing /etc/gai.conf to AppArmor profile. * Add missing "Wants" directive in systemd unit file. * Restart fwknop-server on failure. * Fix compile warnings. OBS-URL: https://build.opensuse.org/request/show/1159112 OBS-URL: https://build.opensuse.org/package/show/network/fwknop?expand=0&rev=6 --- fwknop-2.6.10.tar.bz2 | 3 --- fwknop-2.6.10.tar.bz2.sig | 6 ------ fwknop-2.6.11.tar.bz2 | 3 +++ fwknop-2.6.11.tar.bz2.sig | 6 ++++++ fwknop.changes | 18 ++++++++++++++++++ fwknop.spec | 31 ++++++++++++++----------------- 6 files changed, 41 insertions(+), 26 deletions(-) delete mode 100644 fwknop-2.6.10.tar.bz2 delete mode 100644 fwknop-2.6.10.tar.bz2.sig create mode 100644 fwknop-2.6.11.tar.bz2 create mode 100644 fwknop-2.6.11.tar.bz2.sig diff --git a/fwknop-2.6.10.tar.bz2 b/fwknop-2.6.10.tar.bz2 deleted file mode 100644 index dbf499d..0000000 --- a/fwknop-2.6.10.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6c09bec97ed8e474a98ae14f9f53e1bcdda33393f20667b6af3fb6bb894ca77 -size 1787914 diff --git a/fwknop-2.6.10.tar.bz2.sig b/fwknop-2.6.10.tar.bz2.sig deleted file mode 100644 index 67f12ab..0000000 --- a/fwknop-2.6.10.tar.bz2.sig +++ /dev/null @@ -1,6 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iF0EABECAB0WIQRNZkSp2gNpBL2iy5DmyeM1DT50EAUCW2jrrQAKCRDmyeM1DT50 -EHGMAJ4s18ZMA6tut1o6sw8ZMHRKpuuCYACePh2dDiUqCllN3emXAb0w3qIVGLM= -=GQEE ------END PGP SIGNATURE----- diff --git a/fwknop-2.6.11.tar.bz2 b/fwknop-2.6.11.tar.bz2 new file mode 100644 index 0000000..a6aaf8f --- /dev/null +++ b/fwknop-2.6.11.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4ec7c22dd90dd684f9f7b96d3a901c4131ec8c7a3b9db26d0428513f6774c64 +size 1812061 diff --git a/fwknop-2.6.11.tar.bz2.sig b/fwknop-2.6.11.tar.bz2.sig new file mode 100644 index 0000000..2b3c084 --- /dev/null +++ b/fwknop-2.6.11.tar.bz2.sig @@ -0,0 +1,6 @@ +-----BEGIN PGP SIGNATURE----- + +iF0EABECAB0WIQRNZkSp2gNpBL2iy5DmyeM1DT50EAUCZcLi1AAKCRDmyeM1DT50 +ELrXAKC0MHKBNFPRnkJ4v+YJtvxwYT8X2gCeKx4U9p+fdFLOzPM9+ws/L+Cbu18= +=i/zP +-----END PGP SIGNATURE----- diff --git a/fwknop.changes b/fwknop.changes index 285889d..9980cf0 100644 --- a/fwknop.changes +++ b/fwknop.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Mon Mar 18 18:51:09 UTC 2024 - Martin Hauke + +- Update to version 2.6.11 + * Seed random() at least a bit before using random(). + * Fix two erroneous calls to strlcat(). + * Use execvp() instead of execvpe(). + * Use HTTP/1.1 when communicating over HTTP. + * khorben/coverity/1355235 TOCTOU. + * Include systemd unit files in tarballs. + * Remove obsolete @setcontentsaftertitlepage command. + * Fix snprintf buffer length. + * Soften the message when the stanza is not the correct one. + * Add missing /etc/gai.conf to AppArmor profile. + * Add missing "Wants" directive in systemd unit file. + * Restart fwknop-server on failure. + * Fix compile warnings. + ------------------------------------------------------------------- Thu Sep 16 07:15:08 UTC 2021 - Johannes Segitz diff --git a/fwknop.spec b/fwknop.spec index b783fdd..520d464 100644 --- a/fwknop.spec +++ b/fwknop.spec @@ -1,7 +1,7 @@ # # spec file for package fwknop # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,19 +16,17 @@ # -%define soname 3 - -%if ! %{defined _fillupdir} - %define _fillupdir %{_localstatedir}/adm/fillup-templates -%endif +%define sover 3 +%define libname libfko%{sover} Name: fwknop -Version: 2.6.10 +Version: 2.6.11 Release: 0 Summary: The fwknop Client License: GPL-2.0-or-later Group: Productivity/Networking/Security URL: https://www.cipherdyne.org/fwknop/ +#Git-Clone: https://github.com/mrash/fwknop.git Source: https://www.cipherdyne.org/fwknop/download/%{name}-%{version}.tar.bz2 Source1: https://www.cipherdyne.org/fwknop/download/%{name}-%{version}.tar.bz2.asc#/%{name}-%{version}.tar.bz2.sig # https://www.cipherdyne.org/signing_key @@ -45,18 +43,18 @@ BuildRequires: systemd-rpm-macros fwknop stands for the "FireWall KNock OPerator", and implements an authorization scheme called Single Packet Authorization (SPA). -%package -n libfko%{soname} +%package -n %{libname} Summary: The Firewall Knock Operator Library Group: System/Libraries -%description -n libfko%{soname} +%description -n %{libname} The Firewall Knock Operator library, libfko, provides the Single Packet Authorization implementation and API for the other fwknop components. %package -n libfko-devel Summary: The Development Files for the Firewall Knock Operator Library Group: Development/Libraries/C and C++ -Requires: libfko%{soname} = %{version} +Requires: %{libname} = %{version} Requires(post): %{install_info_prereq} Requires(preun): %{install_info_prereq} @@ -80,12 +78,11 @@ scheme called Single Packet Authorization (SPA). %setup -q %build -export CFLAGS="%optflags -fcommon" %configure --disable-static -make %{?_smp_mflags} +%make_build %check -make %{?_smp_mflags} check +%make_build check %install %make_install @@ -105,14 +102,14 @@ find %{buildroot} -type f -name "*.la" -delete -print %postun -n fwknopd %service_del_postun %{name}d.service -%post -n libfko%{soname} -p /sbin/ldconfig %post -n libfko-devel %install_info --info-dir=%{_infodir} %{_infodir}/libfko.info.gz -%postun -n libfko%{soname} -p /sbin/ldconfig %postun -n libfko-devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/libfko.info.gz +%ldconfig_scriptlets -n %{libname} + %files %license COPYING %doc AUTHORS CREDITS NEWS README @@ -128,8 +125,8 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_sbindir}/fwknopd %{_mandir}/man8/fwknopd.8%{?ext_man} -%files -n libfko%{soname} -%{_libdir}/libfko.so.%{soname}* +%files -n %{libname} +%{_libdir}/libfko.so.%{sover}* %files -n libfko-devel %{_includedir}/fko.h