[PATCHv4 16/16] staging: usbip: Increment version number to 1.2.1

2013-10-19 Thread Dominik Paulus
Also increment the kernel module version number to match the userspace version, as compatibility with old userspace utilities is now at least partially broken. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/usbip_common.h | 2 +- drivers/staging

[PATCHv4 10/16] staging: usbip: TLS for all userspace communication

2013-10-19 Thread Dominik Paulus
context as well as the fd. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 24 +- drivers/staging/usbip/userspace/src/usbip_list.c | 24 +- .../staging/usbip/userspace/src/usbip_network.c| 279

[PATCHv4 11/16] staging: usbip: Exchange session keys in userspace

2013-10-19 Thread Dominik Paulus
(usbip, probably has more entropy available than the server) and transferred over the already established TLS connection. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- .../staging/usbip/userspace/libsrc/usbip_common.h | 21 ++ .../usbip/userspace/libsrc/usbip_host_driver.c

[PATCHv4 02/16] staging: usbip: Add kernel support for client ACLs

2013-10-19 Thread Dominik Paulus
f-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub.h | 5 drivers/staging/usbip/stub_dev.c | 61 +++- 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/drivers/staging/usbi

[PATCHv4 06/16] staging: usbip: Add proper error reporting

2013-10-19 Thread Dominik Paulus
This patch adds new error codes and features extended error reporting in op_common packets. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 4 +- drivers/staging/usbip/userspace/src/usbip_list.c | 3 +- .../staging/usbip

[PATCHv4 12/16] staging: usbip: Pass session keys to the kernel

2013-10-19 Thread Dominik Paulus
This extends the userspace code to write the generated session keys to sysfs in hexadecimal encoding after establishing the connection. The kernel code is modified to parse the session keys. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub_dev.c

[PATCHv4 09/16] staging: usbip: Separate protocol/program version

2013-10-19 Thread Dominik Paulus
Not all new program versions necessarily introduce non-backwards-compatible protocol changes. We thus move the definition of the protocol version from configure.ac to usbip_network.h, where it logically belongs to. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging

[PATCHv4 14/16] staging: usbip: Add encryption support to kernel

2013-10-19 Thread Dominik Paulus
This adds code performing the actual encryption and authentication operations in the usbip kernel code. The whole data stream may now be encrypted and authenticated with AES-GCM and symmetric 128 bit keys. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip

[PATCHv4 15/16] staging: usbip: Update documentation

2013-10-19 Thread Dominik Paulus
e dead link was removed from the checklist section. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- drivers/staging/usbip/userspace/README | 72 +++- drivers/staging/usbip/userspace/doc/usbipd.8 | 4 +- 2 files changed, 31 insertions(+), 45 deletions

[PATCHv4 05/16] staging: usbip: Add support for ACLs in usbipd

2013-10-19 Thread Dominik Paulus
Interpret the ACLs stored in sysfs in usbipd and reject clients not matching one of the ACLs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/Makefile.am | 2 +- drivers/staging/usbip/userspace/src/usbipd.c

[PATCHv4 13/16] staging: usbip: Wrap kernel_sendmsg()/recvmsg()

2013-10-19 Thread Dominik Paulus
This adds two simple wrappers around kernel_sendmsg() and kernel_recvmsg() that can be extended to perform additional cryptographic operations on the data before sending it. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub_rx.c | 2 +- drivers

[PATCHv4 07/16] staging: usbip: Handle usbip being started as user

2013-10-19 Thread Dominik Paulus
usbip now prints an error message when started as user and requiring root access. Also, some debug messages are changed to error messages so the command line utilities now print less confusing (and more verbose) error messages when not used correctly. Signed-off-by: Dominik Paulus Signed-off-by

[PATCHv4 08/16] staging: usbip: Improve debug output

2013-10-19 Thread Dominik Paulus
For IPv6, IP:Port is unreadable. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/src/usbipd.c b/drivers/staging/usbip/userspace/src

[PATCHv4 04/16] staging: usbip: Add ACL support to usbip bind

2013-10-19 Thread Dominik Paulus
Add the command line argument -a (--allow) to usbip bind to specify networks allowed to attach to the device and code to store the ACLs in sysfs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/doc/usbip.8 | 8

[PATCHv4 00/16] staging: usbip: Add kernel support for client ACLs

2013-10-19 Thread Dominik Paulus
Hi, sorry for the messed-up error checking. We fixed some of the style nitpicks and hopefully all of the mistakes you pointed out (thank you for that!). Regards, Dominik and Tobias ___ devel mailing list de...@linuxdriverproject.org http://driv

[PATCHv4 03/16] staging: usbip: Add CIDR matching helper functions

2013-10-19 Thread Dominik Paulus
This patch adds a few utility functions to match IP addresses against CIDR masks. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/utils.c | 84 + drivers/staging/usbip/userspace/src/utils.h | 15 ++ 2 files

[PATCHv4 01/16] staging: usbip: Add support for client authentication

2013-10-19 Thread Dominik Paulus
used to perform a secure handshake and dropped before the socket is passed to the kernel. The code may be extended to exchange a session key over TLS and pass it to the kernel to perform IPsec. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace

[PATCHv3 08/16] staging: usbip: Improve debug output

2013-09-28 Thread Dominik Paulus
For IPv6, IP:Port is unreadable. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/src/usbipd.c b/drivers/staging/usbip/userspace/src

[PATCHv3 07/16] staging: usbip: Handle usbip being started as user

2013-09-28 Thread Dominik Paulus
usbip now prints an error message when started as user and requiring root access. Also, some debug messages are changed to error messages so the command line utilities now print less confusing (and more verbose) error messages when not used correctly. Signed-off-by: Dominik Paulus Signed-off-by

[PATCHv3 13/16] staging: usbip: Wrap kernel_sendmsg()/recvmsg()

2013-09-28 Thread Dominik Paulus
This adds two simple wrappers around kernel_sendmsg() and kernel_recvmsg() that can be extended to perform additional cryptographic operations on the data before sending it. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub_rx.c | 2 +- drivers

[PATCHv3 12/16] staging: usbip: Pass session keys to the kernel

2013-09-28 Thread Dominik Paulus
This extends the userspace code to write the generated session keys to sysfs in hexadecimal encoding after establishing the connection. The kernel code is modified to parse the session keys. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub_dev.c

[PATCHv3 10/16] staging: usbip: TLS for all userspace communication

2013-09-28 Thread Dominik Paulus
context as well as the fd. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 24 +- drivers/staging/usbip/userspace/src/usbip_list.c | 24 +- .../staging/usbip/userspace/src/usbip_network.c| 279

[PATCHv3 16/16] staging: usbip: Increment version number to 1.2.1

2013-09-28 Thread Dominik Paulus
Also increment the kernel module version number to match the userspace version, as compatibility with old userspace utilities is now at least partially broken. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/usbip_common.h | 2 +- drivers/staging

[PATCHv3 09/16] staging: usbip: Separate protocol/program version

2013-09-28 Thread Dominik Paulus
Not all new program versions necessarily introduce non-backwards-compatible protocol changes. We thus move the definition of the protocol version from configure.ac to usbip_network.h, where it logically belongs to. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging

[PATCHv3 05/16] staging: usbip: Add support for ACLs in usbipd

2013-09-28 Thread Dominik Paulus
Interpret the ACLs stored in sysfs in usbipd and reject clients not matching one of the ACLs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/Makefile.am | 2 +- drivers/staging/usbip/userspace/src/usbipd.c

[PATCHv3 11/16] staging: usbip: Exchange session keys in userspace

2013-09-28 Thread Dominik Paulus
(usbip, probably has more entropy available than the server) and transferred over the already established TLS connection. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- .../staging/usbip/userspace/libsrc/usbip_common.h | 21 ++ .../usbip/userspace/libsrc/usbip_host_driver.c

[PATCHv3 06/16] staging: usbip: Add proper error reporting

2013-09-28 Thread Dominik Paulus
This patch adds new error codes and features extended error reporting in op_common packets. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 4 +- drivers/staging/usbip/userspace/src/usbip_list.c | 3 +- .../staging/usbip

[PATCHv3 15/16] staging: usbip: Update documentation

2013-09-28 Thread Dominik Paulus
e dead link was removed from the checklist section. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- drivers/staging/usbip/userspace/README | 72 +++- drivers/staging/usbip/userspace/doc/usbipd.8 | 4 +- 2 files changed, 31 insertions(+), 45 deletions

[PATCHv3 14/16] staging: usbip: Add encryption support to kernel

2013-09-28 Thread Dominik Paulus
This adds code performing the actual encryption and authentication operations in the usbip kernel code. The whole data stream may now be encrypted and authenticated with AES-GCM and symmetric 128 bit keys. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip

[PATCHv3 02/16] staging: usbip: Add kernel support for client ACLs

2013-09-28 Thread Dominik Paulus
f-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub.h | 5 +++ drivers/staging/usbip/stub_dev.c | 68 +++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/drivers/staging/usbi

[PATCHv3 01/16] staging: usbip: Add support for client authentication

2013-09-28 Thread Dominik Paulus
used to perform a secure handshake and dropped before the socket is passed to the kernel. The code may be extended to exchange a session key over TLS and pass it to the kernel to perform IPsec. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace

[PATCHv3 03/16] staging: usbip: Add CIDR matching helper functions

2013-09-28 Thread Dominik Paulus
This patch adds a few utility functions to match IP addresses against CIDR masks. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/utils.c | 84 + drivers/staging/usbip/userspace/src/utils.h | 15 ++ 2 files

[PATCHv3 04/16] staging: usbip: Add ACL support to usbip bind

2013-09-28 Thread Dominik Paulus
Add the command line argument -a (--allow) to usbip bind to specify networks allowed to attach to the device and code to store the ACLs in sysfs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/doc/usbip.8 | 8

Re: [PATCHv2 0/11] staging: usbip: Userland crypto and ACLs

2013-09-28 Thread Dominik Paulus
On Wed, Sep 25, 2013 at 04:36:38PM -0700, Greg Kroah-Hartman wrote: > Only the first patch could be applied. Can you refresh this series, and > your other one (fixing the issues pointed out there), and resend them > please? We've incorporated all of Dan's fixes and suggestions and rebased the whol

Re: [PATCH 5/7] staging: usbip: Add encryption support to kernel

2013-09-26 Thread Dominik Paulus
rect size. > > + total = ret; > > + goto err; > > + } else if (ret != sizeof(packetsize)) { > > + total = -EBADMSG; > > + goto err; > > + } On Mon, Sep 2

[PATCH 7/7] staging: usbip: Increment version number to 1.2.1

2013-09-19 Thread Dominik Paulus
Also increment the kernel module version number to match the userspace version, as compatibility with old userspace utilities is now at least partially broken. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/usbip_common.h | 2 +- drivers/staging

[PATCH 6/7] staging: usbip: Update documentation

2013-09-19 Thread Dominik Paulus
e dead link was removed from the checklist section. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- drivers/staging/usbip/userspace/README | 72 +++- drivers/staging/usbip/userspace/doc/usbipd.8 | 4 +- 2 files changed, 31 insertions(+), 45 deletions

[PATCH 5/7] staging: usbip: Add encryption support to kernel

2013-09-19 Thread Dominik Paulus
This adds code performing the actual encryption and authentication operations in the usbip kernel code. The whole data stream may now be encrypted and authenticated with AES-GCM and symmetric 128 bit keys. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip

[PATCH 4/7] staging: usbip: Wrap kernel_sendmsg()/recvmsg()

2013-09-19 Thread Dominik Paulus
This adds two simple wrappers around kernel_sendmsg() and kernel_recvmsg() that can be extended to perform additional cryptographic operations on the data before sending it. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub_rx.c | 2 +- drivers

[PATCH 1/7] staging: usbip: TLS for all userspace communication

2013-09-19 Thread Dominik Paulus
context as well as the fd. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 24 +- drivers/staging/usbip/userspace/src/usbip_list.c | 24 +- .../staging/usbip/userspace/src/usbip_network.c| 279

[PATCH 2/7] staging: usbip: Exchange session keys in userspace

2013-09-19 Thread Dominik Paulus
(usbip, probably has more entropy available than the server) and transferred over the already established TLS connection. As this breaks compatibility with older clients supporting userspace encryption, the protocol version is increased. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer

[PATCH 3/7] staging: usbip: Pass session keys to the kernel

2013-09-19 Thread Dominik Paulus
This extends the userspace code to write the generated session keys to sysfs in hexadecimal encoding after establishing the connection. The kernel code is modified to parse the session keys. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub_dev.c

[PATCH 0/7] staging: usbip: Extend crypto support

2013-09-19 Thread Dominik Paulus
merged as one, the protocol version increment can be omitted - both patch series are compatible with unauthenticated transport, but are incompatible with each other. Regards, Tobias Polzer and Dominik Paulus [1] <1379066161-8278-1-git-send-email-dominik.pau...@fau.de>, https://lk

[PATCH] staging: usbip: Fix build with --with-tcp-wrappers

2013-09-19 Thread Dominik Paulus
With --with-tcp-wrappers=no specified, the build system reset LIBS to the empty string and thus fails to link against libsysfs. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

Re: [PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Dominik Paulus
device (vhci) not being created, so usbip cannot work. It works after removing the codeblock mentioned above. We did some research and discovered that dma_mask is only set on PowerPC at the moment (in arch/powerpc/kernel/setup-common.c, arch_setup_pdev_archda

[PATCH] staging: usbip: Fix build on Debian ppc

2013-09-19 Thread Dominik Paulus
From: Tobias Polzer One missing include was added. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_network.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/usbip/userspace/src/usbip_network.c b/drivers/staging

[PATCHv2 05/11] staging: usbip: Add ACL support to usbip bind

2013-09-13 Thread Dominik Paulus
Add the command line argument -a (--allow) to usbip bind to specify networks allowed to attach to the device and code to store the ACLs in sysfs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/doc/usbip.8 | 8

[PATCHv2 01/11] staging: usbip: Fix IPv6 support in usbipd

2013-09-13 Thread Dominik Paulus
with EADDRINUSE. This patch uses seperate sockets for IPv4 and IPv6 and sets IPV6_V6ONLY on all IPv6 sockets. Two command line arguments, -4 and -6 were added to manually select the socket family. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- .../staging/usbip/userspace/src

[PATCHv2 11/11] staging: usbip: Increment version to 1.2.0

2013-09-13 Thread Dominik Paulus
Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/configure.ac b/drivers/staging/usbip/userspace/configure.ac index 099d24b..0b0e035

[PATCHv2 09/11] staging: usbip: Improve debug output

2013-09-13 Thread Dominik Paulus
For IPv6, IP:Port is unreadable. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/src/usbipd.c b/drivers/staging/usbip/userspace/src

[PATCHv2 07/11] staging: usbip: Add proper error reporting

2013-09-13 Thread Dominik Paulus
This patch adds new error codes and features extended error reporting in op_common packets. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 4 +- drivers/staging/usbip/userspace/src/usbip_list.c | 3 +- .../staging/usbip

[PATCHv2 0/11] staging: usbip: Userland crypto and ACLs

2013-09-13 Thread Dominik Paulus
don't increment the protocol version. We've already sent this patch series, but forgot to specify a subject line. linux-usb apparently received it[2], the LKML didn't. Sorry if you received it twice now. Regards, Tobias Polzer and Dominik Paulus [1] See <6aeb926e1c4572

[PATCHv2 06/11] staging: usbip: Add support for ACLs in usbipd

2013-09-13 Thread Dominik Paulus
Interpret the ACLs stored in sysfs in usbipd and reject clients not matching one of the ACLs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/Makefile.am | 2 +- drivers/staging/usbip/userspace/src/usbipd.c

[PATCHv2 04/11] staging: usbip: Add CIDR matching helper functions

2013-09-13 Thread Dominik Paulus
This patch adds a few utility functions to match IP addresses against CIDR masks. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/utils.c | 84 + drivers/staging/usbip/userspace/src/utils.h | 15 ++ 2 files

[PATCHv2 03/11] staging: usbip: Add kernel support for client ACLs

2013-09-13 Thread Dominik Paulus
f-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub.h | 5 +++ drivers/staging/usbip/stub_dev.c | 68 +++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/drivers/staging/usbi

[PATCHv2 10/11] staging: usbip: Separate protocol/program version

2013-09-13 Thread Dominik Paulus
Not all new program versions necessarily introduce non-backwards-compatible protocol changes. We thus move the definition of the protocol version from configure.ac to usbip_network.h, where it logically belongs to. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging

[PATCHv2 08/11] staging: usbip: Handle usbip being started as user

2013-09-13 Thread Dominik Paulus
usbip now prints an error message when started as user and requiring root access. Also, some debug messages are changed to error messages so the command line utilities now print less confusing (and more verbose) error messages when not used correctly. Signed-off-by: Dominik Paulus Signed-off-by

[PATCHv2 02/11] staging: usbip: Add support for client authentication

2013-09-13 Thread Dominik Paulus
used to perform a secure handshake and dropped before the socket is passed to the kernel. The code may be extended to exchange a session key over TLS and pass it to the kernel to perform IPsec. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace

[PATCH 05/11] staging: usbip: Add ACL support to usbip bind

2013-09-11 Thread Dominik Paulus
Add the command line argument -a (--allow) to usbip bind to specify networks allowed to attach to the device and code to store the ACLs in sysfs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/doc/usbip.8 | 8

[no subject]

2013-09-11 Thread Dominik Paulus
don't increment the protocol version. Regards, Tobias Polzer and Dominik Paulus [1] See <6aeb926e1c4572e79488a91a827333c9.squir...@faumail.uni-erlangen.de> ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriver

[PATCH 03/11] staging: usbip: Add kernel support for client ACLs

2013-09-11 Thread Dominik Paulus
f-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/stub.h | 5 +++ drivers/staging/usbip/stub_dev.c | 68 +++- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/drivers/staging/usbi

[PATCH 09/11] staging: usbip: Improve debug output

2013-09-11 Thread Dominik Paulus
For IPv6, IP:Port is unreadable. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbipd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/src/usbipd.c b/drivers/staging/usbip/userspace/src

[PATCH 08/11] staging: usbip: Handle usbip being started as user

2013-09-11 Thread Dominik Paulus
usbip now prints an error message when started as user and requiring root access. Also, some debug messages are changed to error messages so the command line utilities now print less confusing (and more verbose) error messages when not used correctly. Signed-off-by: Dominik Paulus Signed-off-by

[PATCH 06/11] staging: usbip: Add support for ACLs in usbipd

2013-09-11 Thread Dominik Paulus
Interpret the ACLs stored in sysfs in usbipd and reject clients not matching one of the ACLs. Signed-off-by: Kurt Kanzenbach Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/Makefile.am | 2 +- drivers/staging/usbip/userspace/src/usbipd.c

[PATCH 04/11] staging: usbip: Add CIDR matching helper functions

2013-09-11 Thread Dominik Paulus
This patch adds a few utility functions to match IP addresses against CIDR masks. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/utils.c | 84 + drivers/staging/usbip/userspace/src/utils.h | 15 ++ 2 files

[PATCH 07/11] staging: usbip: Add proper error reporting

2013-09-11 Thread Dominik Paulus
This patch adds new error codes and features extended error reporting in op_common packets. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/src/usbip_attach.c | 4 +- drivers/staging/usbip/userspace/src/usbip_list.c | 3 +- .../staging/usbip

[PATCH 10/11] staging: usbip: Separate protocol/program version

2013-09-11 Thread Dominik Paulus
Not all new program versions necessarily introduce non-backwards-compatible protocol changes. We thus move the definition of the protocol version from configure.ac to usbip_network.h, where it logically belongs to. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging

[PATCH 01/11] staging: usbip: Fix IPv6 support in usbipd

2013-09-11 Thread Dominik Paulus
with EADDRINUSE. This patch uses seperate sockets for IPv4 and IPv6 and sets IPV6_V6ONLY on all IPv6 sockets. Two command line arguments, -4 and -6 were added to manually select the socket family. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- .../staging/usbip/userspace/src

[PATCH 11/11] staging: usbip: Increment version to 1.2.0

2013-09-11 Thread Dominik Paulus
Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/usbip/userspace/configure.ac b/drivers/staging/usbip/userspace/configure.ac index 099d24b..0b0e035

[PATCH 02/11] staging: usbip: Add support for client authentication

2013-09-11 Thread Dominik Paulus
used to perform a secure handshake and dropped before the socket is passed to the kernel. The code may be extended to exchange a session key over TLS and pass it to the kernel to perform IPsec. Signed-off-by: Dominik Paulus Signed-off-by: Tobias Polzer --- drivers/staging/usbip/userspace

[PATCH] Fix IPv6 support in usbipd

2013-09-10 Thread Dominik Paulus
with EADDRINUSE. This patch uses seperate sockets for IPv4 and IPv6 and sets IPV6_V6ONLY on all IPv6 sockets. Two command line arguments, -4 and -6 were added to manually select the socket family. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- .../staging/usbip/userspace/src