Allow to obtain fd from USB Security Daemon
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 29 Jun 2015 10:31:05 +0000 (12:31 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 13 Apr 2017 11:13:11 +0000 (13:13 +0200)
commit8633dfb3c90dd00abd97ddfe6653d56d94ad997e
treec8daf30eae4fbd06a45283a65f4f57c957656ce0
parent0f8915455b045c2bff6b4c9dd220912ab450af47
Allow to obtain fd from USB Security Daemon

Tizen don't allow applications to directly open device
nodes for communication with USB devices. We have our own
daemon (USD - USB Security Daemon) which holds the policy
of accessing USB devices. Each app which would like to
communicate with device has to ask USD to open suitable file
and pass fds to app.

This patch updates libusb and first tries to open device
node directly and only if it fails asks USD to open fds.
This allows to not influence existing libusb users which
has root rights and check USD permissions only for external
applications.

Change-Id: I9dcac37ccc8ae86cef4d22965744781307940e61
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Rebase patch onto new library version]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
configure.ac
libusb/Makefile.am
libusb/os/linux_usbfs.c
packaging/libusb.spec