Repository navigation
at-spi2-core: Find dbus-daemon and dbus-broker-launch on PATH - #541158
Merged
Merged
Conversation
This is needed to allow using `at-spi-bus-launcher` in Nix build sandbox where the `/run/current-system` does not exist (e.g. for testing Orca). As a side benefit, we will be able to run `at-spi-bus-launcher` on non-NixOS systems. Also, the comment introduced in f6260a3 is slightly misleading. There is no fallback – `at-spi-bus-launcher` will always launch a new `dbus-daemon` instance (accessibility bus) to avoid clobbering the session bus. So I adjusted the text. Since `at-spi-dbus-bus.service` is a systemd user service, it will use `PATH` from user profile, which might prioritize e.g. `~/.local/bin`. This could, in theory, allow an injection of a malicious D-Bus daemon wrapper that would exfiltrate the accessibility bus traffic. But attacker could just as well override `at-spi-dbus-bus.service` so this should not affect security properties. But just to reduce the chance of user profile interference, I am prepending system directories to PATH in the launcher wrapper.
This was referenced Jul 12, 2026
theCapypara
approved these changes
Aug 1, 2026
theCapypara
left a comment
Member
There was a problem hiding this comment.
LGTM, haven't tested but the diff and explanation seem good to me.
Member
|
Is this OK to backport? If yes, let's do that (if not, let's at least backport the version bump) to unblock the backport of #549705. |
3 of 13 tasks
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.
This is needed to allow using
at-spi-bus-launcherin Nix build sandbox where the/run/current-systemdoes not exist (e.g. for testing Orca). As a side benefit, we will be able to runat-spi-bus-launcheron non-NixOS systems.Also, the comment introduced in f6260a3 is slightly misleading. There is no fallback –
at-spi-bus-launcherwill always launch a newdbus-daemoninstance (accessibility bus) to avoid clobbering the session bus. So I adjusted the text.Since
at-spi-dbus-bus.serviceis a systemd user service, it will usePATHfrom user profile, which might prioritize e.g.~/.local/bin. This could, in theory, allow an injection of a malicious D-Bus daemon wrapper that would exfiltrate the accessibility bus traffic. But attacker could just as well overrideat-spi-dbus-bus.serviceso this should not affect security properties. But just to reduce the chance of user profile interference, I am prepending system directories to PATH in the launcher wrapper.While at it, I am updating the package: https://gitlab.gnome.org/GNOME/at-spi2-core/-/compare/2.60.4...2.60.5
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.