Compare commits
10 Commits
9acff0acd4
...
5f223187f3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f223187f3 | ||
|
|
a8f3ab4e25 | ||
|
|
be198a85ef | ||
|
|
7acb6feafe | ||
|
|
60791fbd0a | ||
|
|
85e61c24da | ||
|
|
5f4b19a644 | ||
|
|
9009034023 | ||
|
|
834660b7ab | ||
|
|
cf9c095087 |
34
0001-usbredirect-listen-on-correct-address.patch
Normal file
34
0001-usbredirect-listen-on-correct-address.patch
Normal file
@ -0,0 +1,34 @@
|
||||
From bf307aeb470f40ffc41ecc909fbd2e65cda3640e Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Fullmer <danielrf12@gmail.com>
|
||||
Date: Mon, 25 Jul 2022 19:51:34 -0700
|
||||
Subject: [PATCH] usbredirect: listen on correct address
|
||||
|
||||
Previously, usbredirect would ignore the listen address passed via
|
||||
`--as <addr>:<port>`, and would always listen on the loopback interface.
|
||||
This corrects that behavior.
|
||||
|
||||
Signed-off-by: Daniel Fullmer <danielrf12@gmail.com>
|
||||
---
|
||||
tools/usbredirect.c | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/usbredirect.c b/tools/usbredirect.c
|
||||
index 5e2376c..ff910ab 100644
|
||||
--- a/tools/usbredirect.c
|
||||
+++ b/tools/usbredirect.c
|
||||
@@ -567,7 +567,12 @@ main(int argc, char *argv[])
|
||||
GSocketService *socket_service;
|
||||
|
||||
socket_service = g_socket_service_new ();
|
||||
- GInetAddress *iaddr = g_inet_address_new_loopback(G_SOCKET_FAMILY_IPV4);
|
||||
+ GInetAddress *iaddr = g_inet_address_new_from_string(self->addr);
|
||||
+ if (iaddr == NULL) {
|
||||
+ g_warning("Failed to parse IP: %s", self->addr);
|
||||
+ goto end;
|
||||
+ }
|
||||
+
|
||||
GSocketAddress *saddr = g_inet_socket_address_new(iaddr, self->port);
|
||||
g_object_unref(iaddr);
|
||||
|
||||
--
|
||||
2.37.0.windows.1
|
||||
BIN
usbredir-0.12.0.tar.xz
Normal file
BIN
usbredir-0.12.0.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,13 +1,16 @@
|
||||
Name: usbredir
|
||||
Version: 0.8.0
|
||||
Release: 5
|
||||
Version: 0.12.0
|
||||
Release: 3
|
||||
Summary: network protocol libraries for sending USB device traffic
|
||||
License: LGPLv2+ and GPLv2+
|
||||
URL: https://www.spice-space.org/usbredir.html
|
||||
|
||||
Source0: http://spice-space.org/download/%{name}/%{name}-%{version}.tar.bz2
|
||||
Source0: http://spice-space.org/download/%{name}/%{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: libusb1-devel >= 1.0.9 git gcc
|
||||
Patch1: 0001-usbredirect-listen-on-correct-address.patch
|
||||
|
||||
BuildRequires: libusb1-devel >= 1.0.9 gcc
|
||||
BuildRequires: meson glib2-devel
|
||||
Provides: %{name}-server
|
||||
Obsoletes: %{name}-server
|
||||
|
||||
@ -35,37 +38,53 @@ This contains man files for the using of usbredir.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1 -S git
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags} V=1
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%meson_install
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING COPYING.LIB README README.multi-thread
|
||||
%license COPYING COPYING.LIB
|
||||
%{_libdir}/libusbredir*.so.*
|
||||
%{_bindir}/usbredirect
|
||||
%{_sbindir}/usbredirserver
|
||||
%exclude %{_libdir}/libusbredir*.la
|
||||
|
||||
%files devel
|
||||
%doc ChangeLog
|
||||
%doc ChangeLog.md
|
||||
%{_includedir}/usbredir*.h
|
||||
%{_libdir}/libusbredir*.so
|
||||
%{_libdir}/pkgconfig/libusbredir*.pc
|
||||
|
||||
%files help
|
||||
%{_mandir}/man1/usbredirect.1*
|
||||
%{_mandir}/man1/usbredirserver.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Nov 1 2022 lihaoxiang <lihaoxiang9@huawei.com> - 0.12.0-3
|
||||
- usbredirect: listen on correct address
|
||||
|
||||
* Thu Jan 20 2022 yanglongkang <yanglongkang@huawei.com> - 0.12.0-2
|
||||
- modify the %files in spec file
|
||||
|
||||
* Tue Nov 23 2021 yanglongkang <yanglongkang@huawei.com> - 0.12.0-1
|
||||
- update to 0.12.0
|
||||
|
||||
* Thu Sep 23 2021 yanglongkang <yanglongkang@huawei.com> - 0.8.0-7
|
||||
- fix CVE-2021-3700
|
||||
|
||||
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.8.0-6
|
||||
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
||||
|
||||
* Tue Jun 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 0.8.0-5
|
||||
- add buildrequire gcc.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user