diff options
author | Adrian Perez de Castro | 2016-10-09 23:39:29 +0300 |
---|---|---|
committer | Adrian Perez de Castro | 2016-10-09 23:39:29 +0300 |
commit | e442c73ce837781a02a1cde03b4266c83a2df88e (patch) | |
tree | e2a8fe2311d9d0235e4853d0421e73ff49235b75 /PKGBUILD | |
parent | 21c542a05aa20b480995aeb29598a509c2dcc6c3 (diff) | |
download | aur-e442c73ce837781a02a1cde03b4266c83a2df88e.tar.gz |
Set bwrap as setuid if needed in install script
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ pkgdesc='Unprivileged sandboxing tool' url='https://github.com/projectatomic/bubblewrap' license=('LGPL') pkgver=0.1.2.r1.g169db04 -pkgrel=1 +pkgrel=2 arch=('x86_64' 'i686') makedepends=('autoconf' 'automake' 'libxslt') conflicts=('bubblewrap') @@ -11,13 +11,13 @@ provides=('bubblewrap') source=("${pkgname}::git+${url}") sha512sums=('SKIP') -_privmode='caps' +_privmode='setuid' _set_privmode () { if [[ -r /proc/config.gz ]] ; then eval "$(zgrep '^CONFIG_USER_NS=' /proc/config.gz)" if [[ -n ${CONFIG_USER_NS} && ${CONFIG_USER_NS} != n ]] ; then install='bubblewrap.install' - _privmode='none' + _privmode='caps' fi fi } |