supergfxctl: drop nonexistent sudo group from D-Bus policy
Arch has no sudo group, so dbus-broker rejects that policy block by name on every bus reload: "Invalid group-name in org.supergfxctl.Daemon.conf +9: group=\"sudo\"". The block grants nothing here; the wheel policy in the same file is what authorises an unprivileged user. Remove the dead block with a checked-in patch and bump pkgrel.
This commit is contained in:
1 parent
d12fa816b7
commit
71abb9f0aa
2 files changed
+26
-3
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pkgname=supergfxctl
|
pkgname=supergfxctl
|
||||||
pkgver=5.2.7
|
pkgver=5.2.7
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="A utility for Linux graphics switching on Intel/AMD iGPU + nVidia dGPU laptops"
|
pkgdesc="A utility for Linux graphics switching on Intel/AMD iGPU + nVidia dGPU laptops"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://gitlab.com/asus-linux/supergfxctl"
|
url="https://gitlab.com/asus-linux/supergfxctl"
|
||||||
@@ -13,11 +13,21 @@ makedepends=('rust')
|
|||||||
provides=('supergfxctl')
|
provides=('supergfxctl')
|
||||||
conflicts=('supergfxctl-git'
|
conflicts=('supergfxctl-git'
|
||||||
'optimus-manager')
|
'optimus-manager')
|
||||||
source=("https://gitlab.com/asus-linux/supergfxctl/-/archive/$pkgver/supergfxctl-$pkgver.tar.gz")
|
source=("https://gitlab.com/asus-linux/supergfxctl/-/archive/$pkgver/supergfxctl-$pkgver.tar.gz"
|
||||||
sha512sums=('bd94646d289c9f3398e1bf2a189554ac60d4db2d4d2cefddc0b342e8a128d4682e20268e0b1f9b168441136ada0b6fadb097a5a35d1023a77528dbf0540de3af')
|
"drop-nonexistent-sudo-group.patch")
|
||||||
|
sha512sums=('bd94646d289c9f3398e1bf2a189554ac60d4db2d4d2cefddc0b342e8a128d4682e20268e0b1f9b168441136ada0b6fadb097a5a35d1023a77528dbf0540de3af'
|
||||||
|
'c24de0e6a632fd98052eb3b265000cf15bf00ff46f7e52120e462715937df8135297d9f12725d1c303691c0db55b23d2b29671f020bd64e98a993b1ad9b8551e')
|
||||||
options=(!debug)
|
options=(!debug)
|
||||||
_gitdir=${pkgname%"-git"}
|
_gitdir=${pkgname%"-git"}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
# Arch has no "sudo" group, so dbus-broker rejects that policy block by name on
|
||||||
|
# every bus reload ("Invalid group-name ... group=\"sudo\""). The block grants
|
||||||
|
# nothing here; the wheel policy in the same file is the one that applies.
|
||||||
|
patch -p1 -i "$srcdir/drop-nonexistent-sudo-group.patch"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname-$pkgver"
|
||||||
make build
|
make build
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
--- a/data/org.supergfxctl.Daemon.conf
|
||||||
|
+++ b/data/org.supergfxctl.Daemon.conf
|
||||||
|
@@ -6,10 +6,6 @@
|
||||||
|
<allow send_destination="org.supergfxctl.Daemon"/>
|
||||||
|
<allow receive_sender="org.supergfxctl.Daemon"/>
|
||||||
|
</policy>
|
||||||
|
- <policy group="sudo">
|
||||||
|
- <allow send_destination="org.supergfxctl.Daemon"/>
|
||||||
|
- <allow receive_sender="org.supergfxctl.Daemon"/>
|
||||||
|
- </policy>
|
||||||
|
<policy group="users">
|
||||||
|
<allow send_destination="org.supergfxctl.Daemon"/>
|
||||||
|
<allow receive_sender="org.supergfxctl.Daemon"/>
|
||||||
Reference in new issue
Block a user