Skip to content

Commit

Permalink
Set correct capabilities on installed binaries to allow access to USB…
Browse files Browse the repository at this point in the history
… devices
  • Loading branch information
drdanick committed Feb 22, 2021
1 parent 1315cca commit 809a4bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions PKGBUILD
Expand Up @@ -11,6 +11,7 @@ arch=('x86_64')
license=('custom:Teradici')
depends=('pcsclite' 'qt5-declarative' 'qt5-quickcontrols')
makedepends=('fakeroot')
install=$pkgname.install
#options=(!strip)
source=("https://downloads.teradici.com/ubuntu/pool/non-free/p/pcoip-client/pcoip-client_${pkgver}-18.04_amd64.deb"
"http://se.archive.ubuntu.com/ubuntu/pool/main/p/protobuf/libprotobuf10_3.0.0-9.1ubuntu1_amd64.deb"
Expand Down
4 changes: 4 additions & 0 deletions pcoip-client.install
@@ -0,0 +1,4 @@
post_install() {
setcap "cap_setgid+p" "/usr/bin/pcoip-client"
setcap "cap_setgid+i" "/usr/libexec/pcoip-client/usb-helper"
}

0 comments on commit 809a4bc

Please sign in to comment.