Compare commits

...

No commits in common. 'epel9' and 'i8c' have entirely different histories.
epel9 ... i8c

5
.gitignore vendored

@ -1,4 +1 @@
/libusbmuxd-1.0.9.tar.bz2
/libusbmuxd-1.0.10.tar.bz2
/2.0.0.tar.gz
/2.0.2.tar.gz
SOURCES/libusbmuxd-1.0.10.tar.bz2

@ -0,0 +1 @@
9d4ce8ac058cfea66e6785d2bad5bb9c93681b16 SOURCES/libusbmuxd-1.0.10.tar.bz2

@ -0,0 +1,31 @@
From 4397b3376dc4e4cb1c991d0aed61ce6482614196 Mon Sep 17 00:00:00 2001
From: Joshua Hill <posixninja@gmail.com>
Date: Tue, 29 Dec 2015 23:09:37 +0100
Subject: [PATCH] common: [security fix] Make sure sockets only listen locally
---
common/socket.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/socket.c b/common/socket.c
index 27b93ba..4cdefd6 100644
--- a/common/socket.c
+++ b/common/socket.c
@@ -203,7 +203,7 @@ int socket_create(uint16_t port)
memset((void *) &saddr, 0, sizeof(saddr));
saddr.sin_family = AF_INET;
- saddr.sin_addr.s_addr = htonl(INADDR_ANY);
+ saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
saddr.sin_port = htons(port);
if (0 > bind(sfd, (struct sockaddr *) &saddr, sizeof(saddr))) {
@@ -368,7 +368,7 @@ int socket_accept(int fd, uint16_t port)
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
- addr.sin_addr.s_addr = htonl(INADDR_ANY);
+ addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
addr.sin_port = htons(port);
addr_len = sizeof(addr);

@ -1,16 +1,15 @@
Name: libusbmuxd
Version: 2.0.2
Release: 5%{?dist}
Version: 1.0.10
Release: 9%{?dist}
Summary: Client library USB multiplex daemon for Apple's iOS devices
Group: System Environment/Libraries
License: LGPLv2+
URL: http://www.libimobiledevice.org/
Source0: https://github.com/libimobiledevice/%{name}/archive/%{version}.tar.gz
Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
Patch0: CVE-2016-5104.patch
BuildRequires: gcc
BuildRequires: libplist-devel >= 2.2.0
BuildRequires: autoconf automake libtool
BuildRequires: make
BuildRequires: libplist-devel >= 1.11
%description
libusbmuxd is the client library used for communicating with Apple's iPod Touch,
@ -19,6 +18,7 @@ to be accessed simultaneously.
%package utils
Summary: Utilities for communicating with Apple's iOS devices
Group: Applications/System
License: GPLv2+
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -27,6 +27,7 @@ Utilities for Apple's iOS devices
%package devel
Summary: Development package for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: usbmuxd-devel < 1.0.9
@ -35,8 +36,7 @@ Files for development with %{name}.
%prep
%setup -q
NOCONFIGURE=1 ./autogen.sh
%patch0 -p1 -b .soc
%build
%configure --disable-static
@ -44,10 +44,10 @@ NOCONFIGURE=1 ./autogen.sh
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
make %{?_smp_mflags} V=1
%install
%make_install
make install DESTDIR=%{buildroot} INSTALL='install -p'
#Remove libtool archives.
find %{buildroot} -type f -name "*.la" -delete
@ -55,57 +55,27 @@ find %{buildroot} -type f -name "*.la" -delete
%check
make check
%ldconfig_scriptlets
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc README.md AUTHORS
%{_libdir}/libusbmuxd-2.0.so.*
%doc README AUTHORS
%{_libdir}/libusbmuxd.so.4*
%files utils
%{_bindir}/iproxy
%{_bindir}/inetcat
%{_mandir}/man1/*
%files devel
%{_includedir}/usbmuxd*
%{_libdir}/pkgconfig/libusbmuxd-2.0.pc
%{_libdir}/libusbmuxd-2.0.so
%{_libdir}/pkgconfig/libusbmuxd.pc
%{_libdir}/libusbmuxd.so
%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 2.0.2-2
- Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Tue Jun 16 2020 Bastien Nocera <bnocera@redhat.com> - 2.0.2-1
+ libusbmuxd-2.0.2-1
- Update to 2.0.2
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Nov 23 2019 Bastien Nocera <bnocera@redhat.com> - 2.0.0-1
+ libusbmuxd-2.0.0-1
- Update to 2.0.0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.0.10-9
- Rebuilt for MSVSphere 8.8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

@ -1 +0,0 @@
SHA512 (2.0.2.tar.gz) = 9b64d5d47f958566432d5c94c51cc42bff0bb700c1d265ac507cfa31ac164fd52526725e9b1686922305c7ea4d3a0df6d469a8cf9a360bd9c22f55f5c8339500
Loading…
Cancel
Save