Repository navigation
supergfxctl: drop nonexistent sudo group from D-Bus policy - #639
Merged
ryanrhughes merged 1 commit intoSep 28, 2026
Merged
Conversation
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The shipped D-Bus policy declares a group Arch does not have, so
dbus-brokerlogs an error on every bus reload. Bumppkgreland patch the policy file.Files:
pkgbuilds/supergfxctl/PKGBUILD(pkgrel 2 → 3),pkgbuilds/supergfxctl/drop-nonexistent-sudo-group.patch(new).Problem
supergfxctlships/usr/share/dbus-1/system.d/org.supergfxctl.Daemon.confverbatim fromupstream. That file declares a policy for a group Arch does not have:
Arch has no
sudogroup (administrators arewheel), sodbus-brokerrejects the blockby name on every bus reload and logs an error each time:
The
+9is line 9, exactly<policy group="sudo">. Five occurrences on a single boot here.Impact is limited to log noise plus a dead policy block — nothing is actually denied:
the same file's
group="wheel"block is what authorises an unprivileged user, andsupergfxctl -gworks fine as a normalwheeluser. The problem is that the error isindistinguishable from a real bus-policy fault and repeats on every policy reload.
Why this belongs in the Omarchy recipe and not upstream
Upstream's
data/org.supergfxctl.Daemon.confstill contains the block onmain(checked 2026-09-25), and that is deliberate: Debian/Ubuntu do have a
sudogroup, andit is their administrator group. Arch, Fedora and openSUSE use
wheel, which the samefile already covers. There is no way to express "only when the group exists" in busconfig,
so the correct layer for an Arch-only removal is the distro recipe — hence this patch
rather than an upstream change request.
pkgbuilds/supergfxctl/.omarchy/package.jsonhas
"sync": false, so the checked-in patch is not disturbed by upstream automation.Change
pkgrel=2 → pkgrel=3 source=(".../supergfxctl-$pkgver.tar.gz" + "drop-nonexistent-sudo-group.patch") -sha512sums=('bd94646d…') +sha512sums=('bd94646d…' + 'c24de0e6…') + +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i "$srcdir/drop-nonexistent-sudo-group.patch" +}The patch removes only the four-line
sudoblock;adm,users,wheelandrootpolicies are untouched.
Verification
Build flow, on the recipe as committed here:
makepkg --printsrcinfois clean, andbash -n PKGBUILDpasses.End-to-end A/B on an installed 5.2.7-2 system: install the patched policy file, reload the
bus (SIGHUP;
dbus-brokeris not restarted), then restore the shipped file and reload again:That isolates the block as the cause and shows the fix removes exactly the noise.
Risk
pkgrelbump only; no functional change for Arch users, since the removed block grantedthem nothing. The remaining policies are byte-identical to upstream's.