diff options
author | Max Rees <maxcrees@me.com> | 2019-07-10 19:12:07 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2019-07-10 19:12:07 -0400 |
commit | b0715d7aac673ce92cc3a558e6aa0543452763e7 (patch) | |
tree | d2cdd7e4fc12d4580fbe297e68584da93890d647 | |
parent | 4969941cb635f5937c05ca5dd535d90d82c9d8b3 (diff) | |
download | packages-b0715d7aac673ce92cc3a558e6aa0543452763e7.tar.gz packages-b0715d7aac673ce92cc3a558e6aa0543452763e7.tar.bz2 packages-b0715d7aac673ce92cc3a558e6aa0543452763e7.tar.xz packages-b0715d7aac673ce92cc3a558e6aa0543452763e7.zip |
system/bubblewrap: add non-setuid variant
-rw-r--r-- | system/bubblewrap/APKBUILD | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/system/bubblewrap/APKBUILD b/system/bubblewrap/APKBUILD index 1589504a6..8823c4db2 100644 --- a/system/bubblewrap/APKBUILD +++ b/system/bubblewrap/APKBUILD @@ -10,7 +10,8 @@ options="!check suid" # requires suid to already be set in order to check license="LGPL-2.0+" makedepends="autoconf automake libcap-dev docbook-xsl" checkdepends="sudo" -subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" +subpackages="$pkgname-nosuid $pkgname-doc + $pkgname-bash-completion:bashcomp:noarch" source="bubblewrap-$pkgver.tar.gz::https://github.com/projectatomic/bubblewrap/archive/v$pkgver.tar.gz realpath-workaround.patch musl-fixes.patch @@ -54,6 +55,15 @@ package() { make install DESTDIR="$pkgdir" } +nosuid() { + pkgdesc="$pkgdesc (non-setuid binary)" + + mkdir -p "$subpkgdir"/usr/bin + cp "$pkgdir"/usr/bin/bwrap \ + "$subpkgdir"/usr/bin/bwrap.nosuid + chmod -s "$subpkgdir"/usr/bin/bwrap.nosuid +} + bashcomp() { pkgdesc="Bash completions for $pkgname" depends="" |