chmod suid sandbox for firejail users

This commit is contained in:
Andrés Rodríguez
2020-11-24 19:40:38 -03:00
parent 231764be84
commit a6bf89eff1
2 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
pkgbase = brave-bin
pkgdesc = Web browser that blocks ads and trackers by default (binary release).
pkgver = 1.17.73
pkgrel = 1
pkgrel = 2
epoch = 1
url = https://brave.com/download
arch = x86_64

View File

@@ -9,7 +9,7 @@
pkgname=brave-bin
pkgver=1.17.73
pkgrel=1
pkgrel=2
epoch=1
pkgdesc="Web browser that blocks ads and trackers by default (binary release)."
arch=("x86_64")
@@ -45,6 +45,9 @@ package() {
install -d -m0755 "$pkgdir/usr/lib"
cp -a --reflink=auto $_bsdtardir "$pkgdir/usr/lib/$pkgname"
# allow firejail users to get the suid sandbox working
chmod 4755 $pkgdir/usr/lib/brave-bin/chrome-sandbox
install -Dm0755 "$pkgname.sh" "$pkgdir/usr/bin/brave"
install -Dm0644 -t "$pkgdir/usr/share/applications" "brave-browser.desktop"
install -Dm0644 "logo.png" "$pkgdir/usr/share/pixmaps/brave.png"