Package init
This commit is contained in:
commit
8829b60653
31
6000-CVE-2016-5104.patch
Normal file
31
6000-CVE-2016-5104.patch
Normal file
@ -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);
|
||||||
BIN
libusbmuxd-1.0.10.tar.bz2
Normal file
BIN
libusbmuxd-1.0.10.tar.bz2
Normal file
Binary file not shown.
71
libusbmuxd.spec
Normal file
71
libusbmuxd.spec
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
Name: libusbmuxd
|
||||||
|
Version: 1.0.10
|
||||||
|
Release: 12
|
||||||
|
Summary: software protocol library and tools to communicate with iOS devices natively
|
||||||
|
License: LGPLv2+ and GPLv2+
|
||||||
|
URL: http://www.libimobiledevice.org/
|
||||||
|
Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
|
||||||
|
Patch0: 6000-CVE-2016-5104.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc git libplist-devel >= 1.11
|
||||||
|
Provides: %{name}-utils
|
||||||
|
Obsoletes: %{name}-utils
|
||||||
|
|
||||||
|
%description
|
||||||
|
libusbmuxd provides the library and tools to communicate with Apple's iPod Touch,
|
||||||
|
iPhone, iPad and Apple TV devices. It does not depend on using any existing proprietary
|
||||||
|
libraries and does not require jailbreaking. It allows other software to easily access the
|
||||||
|
device's filesystem, retrieve information about the device and it's internals and so on.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: %{name} development package
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Obsoletes: usbmuxd-devel < 1.0.9
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
provide head files or other files to support for development with %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -S git -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
|
||||||
|
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 V=1
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=%{buildroot} INSTALL='install -p'
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc README AUTHORS
|
||||||
|
%{_libdir}/libusbmuxd.so.4*
|
||||||
|
%{_bindir}/iproxy
|
||||||
|
%exclude %{_libdir}/*.la
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/usbmuxd*
|
||||||
|
%{_libdir}/libusbmuxd.so
|
||||||
|
%{_libdir}/pkgconfig/libusbmuxd.pc
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 30 2019 louhongxiang <louhongxiang@huawei.com> - 1.0.10-12
|
||||||
|
- Type:enhancemnet
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:openEuler Debranding
|
||||||
|
|
||||||
|
* Wed Aug 21 2019 Su Weifeng <suweifeng1@huawei.com> - 1.0.10-11
|
||||||
|
- Type:other
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Package init and rename patches
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user