update iputils version to 20210722
This commit is contained in:
parent
5d83fec309
commit
fea3e26632
@ -2,11 +2,11 @@ From a38091c8eb0c515441080806975856ee09d2edc7 Mon Sep 17 00:00:00 2001
|
|||||||
From: Jan Macku <jamacku@redhat.com>
|
From: Jan Macku <jamacku@redhat.com>
|
||||||
Date: Tue, 23 Mar 2021 08:10:10 +0100
|
Date: Tue, 23 Mar 2021 08:10:10 +0100
|
||||||
Subject: [PATCH] ifenslave: fix CWE-170: Improper Null Termination
|
Subject: [PATCH] ifenslave: fix CWE-170: Improper Null Termination
|
||||||
|
|
||||||
---
|
---
|
||||||
ifenslave.c | 24 ++++++++++++++++--------
|
ifenslave.c | 24 ++++++++++++++++--------
|
||||||
1 file changed, 16 insertions(+), 8 deletions(-)
|
1 file changed, 16 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
diff --git a/ifenslave.c b/ifenslave.c
|
diff --git a/ifenslave.c b/ifenslave.c
|
||||||
index ddd82ec..1efe4f1 100644
|
index ddd82ec..1efe4f1 100644
|
||||||
--- a/ifenslave.c
|
--- a/ifenslave.c
|
||||||
@ -85,4 +85,3 @@ index ddd82ec..1efe4f1 100644
|
|||||||
} else
|
} else
|
||||||
--
|
--
|
||||||
2.29.2
|
2.29.2
|
||||||
|
|
||||||
|
|||||||
BIN
iputils-s20210722.tar.gz
Normal file
BIN
iputils-s20210722.tar.gz
Normal file
Binary file not shown.
53
iputils.spec
53
iputils.spec
@ -1,11 +1,11 @@
|
|||||||
Name: iputils
|
Name: iputils
|
||||||
Version: 20210202
|
Version: 20210722
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Network monitoring tools including ping
|
Summary: Network monitoring tools including ping
|
||||||
License: BSD and GPLv2+
|
License: BSD and GPLv2+
|
||||||
URL: https://github.com/iputils/iputils
|
URL: https://github.com/iputils/iputils
|
||||||
|
|
||||||
Source0: https://github.com/iputils/iputils/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/iputils/iputils/archive/s%{version}.tar.gz#/%{name}-s%{version}.tar.gz
|
||||||
Source1: ifenslave.tar.gz
|
Source1: ifenslave.tar.gz
|
||||||
Source2: rdisc.service
|
Source2: rdisc.service
|
||||||
Source3: ninfod.service
|
Source3: ninfod.service
|
||||||
@ -14,16 +14,12 @@ Source5: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|||||||
|
|
||||||
Patch0000: iputils-ifenslave.patch
|
Patch0000: iputils-ifenslave.patch
|
||||||
Patch0001: bugfix-arping-w-does-not-take-effect.patch
|
Patch0001: bugfix-arping-w-does-not-take-effect.patch
|
||||||
Patch0002: bugfix-rdisc-remove-PrivateUsers=yes-from-systemd-service-file.patch
|
Patch0002: iputils-ifenslave-CWE-170.patch
|
||||||
Patch0003: iputils-ifenslave-CWE-170.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc meson libidn2-devel openssl-devel libcap-devel libxslt
|
BuildRequires: gcc meson libidn2-devel openssl-devel libcap-devel libxslt
|
||||||
BuildRequires: docbook5-style-xsl systemd glibc-kernheaders gettext
|
BuildRequires: docbook5-style-xsl systemd iproute glibc-kernheaders gettext
|
||||||
%{?systemd_ordering}
|
%{?systemd_ordering}
|
||||||
Provides: /bin/ping /bin/ping6 /sbin/arping /sbin/rdisc
|
Provides: /bin/ping /bin/ping6 /sbin/arping /sbin/rdisc
|
||||||
Provides: %{name}-ninfod
|
|
||||||
Obsoletes: %{name}-ninfod
|
|
||||||
Provides: %{_sbindir}/ninfod
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The iputils package contains basic utilities for monitoring a network,
|
The iputils package contains basic utilities for monitoring a network,
|
||||||
@ -33,6 +29,15 @@ the target machine is alive and receiving network traffic.
|
|||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
|
%package ninfod
|
||||||
|
Summary: Node Information Query Daemon
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Provides: %{_sbindir}/ninfod
|
||||||
|
|
||||||
|
%description ninfod
|
||||||
|
Node Information Query (RFC4620) daemon. Responds to IPv6 Node Information
|
||||||
|
Queries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 1 -n %{name}-%{version}
|
%setup -q -a 1 -n %{name}-%{version}
|
||||||
cp %{SOURCE4} %{SOURCE5} .
|
cp %{SOURCE4} %{SOURCE5} .
|
||||||
@ -45,7 +50,7 @@ cp %{SOURCE4} %{SOURCE5} .
|
|||||||
|
|
||||||
%meson -DBUILD_TFTPD=false
|
%meson -DBUILD_TFTPD=false
|
||||||
%meson_build
|
%meson_build
|
||||||
gcc -Wall $RPM_OPT_FLAGS $CFLAGS $LDFLAGS ifenslave.c -o ifenslave
|
gcc -Wall $RPM_OPT_FLAGS $CFLAGS $RPM_LD_FLAGS $LDFLAGS ifenslave.c -o ifenslave
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
@ -63,14 +68,20 @@ install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post rdisc.service
|
%systemd_post rdisc.service
|
||||||
%systemd_post ninfod.service
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun rdisc.service
|
%systemd_preun rdisc.service
|
||||||
%systemd_preun ninfod.service
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart rdisc.service
|
%systemd_postun_with_restart rdisc.service
|
||||||
|
|
||||||
|
%post ninfod
|
||||||
|
%systemd_post ninfod.service
|
||||||
|
|
||||||
|
%preun ninfod
|
||||||
|
%systemd_preun ninfod.service
|
||||||
|
|
||||||
|
%postun ninfod
|
||||||
%systemd_postun_with_restart ninfod.service
|
%systemd_postun_with_restart ninfod.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -81,22 +92,32 @@ install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/
|
|||||||
%attr(0755,root,root) %caps(cap_net_raw=p cap_net_admin=p) %{_bindir}/ping
|
%attr(0755,root,root) %caps(cap_net_raw=p cap_net_admin=p) %{_bindir}/ping
|
||||||
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/ninfod
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/ninfod
|
||||||
%{_datadir}/locale/*
|
%{_datadir}/locale/*
|
||||||
%{_sbindir}/*
|
%{_sbindir}/ifenslave
|
||||||
|
%{_sbindir}/rdisc
|
||||||
|
%{_bindir}/tracepath
|
||||||
|
%{_sbindir}/ping
|
||||||
|
%{_sbindir}/ping6
|
||||||
|
%{_sbindir}/tracepath
|
||||||
|
%{_sbindir}/tracepath6
|
||||||
|
%{_sbindir}/arping
|
||||||
%{_bindir}/tracepath
|
%{_bindir}/tracepath
|
||||||
%{_unitdir}/rdisc.service
|
%{_unitdir}/rdisc.service
|
||||||
%{_unitdir}/ninfod.service
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.bonding
|
%doc README.bonding
|
||||||
%{_mandir}/man8/*.8.gz
|
%{_mandir}/man8/*.8.gz
|
||||||
|
|
||||||
|
%files ninfod
|
||||||
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/ninfod
|
||||||
|
%{_unitdir}/ninfod.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 26 2021 yanglu <yanglu72@huawei.com> - 20210202-1
|
* Tue Dec 07 2021 xihaochen <xihaochen@huawei.com> - 20210722-1
|
||||||
- Type:bugfix
|
- Type:requirements
|
||||||
- ID:NA
|
- ID:NA
|
||||||
- SUG:NA
|
- SUG:NA
|
||||||
- DESC: update iputils to 20210202
|
- DESC: update iputils to 20210722
|
||||||
|
|
||||||
* Mon Mar 8 2021 xuxiaolong <xuxiaolong23@huawei.com> - 20200821-2
|
* Mon Mar 8 2021 xuxiaolong <xuxiaolong23@huawei.com> - 20200821-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user