Skip to content

at-spi2-core: Find dbus-daemon and dbus-broker-launch on PATH - #541158

Merged
jtojnar merged 2 commits into
NixOS:stagingfrom
jtojnar:atspi-fix
Aug 6, 2026
Merged

jtojnar merged 2 commits into
NixOS:stagingfrom
jtojnar:atspi-fix

Conversation

@jtojnar

@jtojnar jtojnar commented Jul 12, 2026

Copy link
Copy Markdown
Member

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.

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

jtojnar added 2 commits July 12, 2026 21:25
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.
@nixpkgs-ci
nixpkgs-ci Bot requested review from a team and 7c6f434c July 12, 2026 19:33
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Jul 12, 2026
@thunze thunze mentioned this pull request Jul 18, 2026
6 of 13 tasks

@theCapypara theCapypara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, haven't tested but the diff and explanation seem good to me.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 1, 2026
@jtojnar
jtojnar added this pull request to the merge queue Aug 6, 2026
Merged via the queue into NixOS:staging with commit 3cfbcc1 Aug 6, 2026
32 checks passed
@jtojnar
jtojnar deleted the atspi-fix branch August 6, 2026 00:07
@jtojnar
jtojnar restored the atspi-fix branch August 6, 2026 00:13
@jtojnar
jtojnar deleted the atspi-fix branch August 6, 2026 00:13
@thunze

thunze commented Aug 7, 2026

Copy link
Copy Markdown
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.

@thunze thunze mentioned this pull request Aug 10, 2026
3 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants