Bug 2356051
| Summary: | DBus units activation is broken | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vitaly <vitaly> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | daan.j.demeyer, dominik, fedoraproject, lnykryn, msekleta, ryncsn, suraj.ghimire7, systemd-maint, yuwatana, zbyszek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-03-31 12:31:08 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Vitaly
2025-03-30 09:41:59 UTC
Just running systemctl start tuned.service as regular user has the same issue. It did bring up a polkit auth dialog before. > Just running systemctl start tuned.service as regular user has the same issue.
It's strange. On my system (Fedora 41 + Plasma 6.3) `systemctl start tuned.service` shows a Polkit window.
You can use busctl, which has support for polkit; I guess dbus-send does not have it. Anyway, this really does not look like a bug in systemd. busctl call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager StartUnit ss tuned.service replace > You can use busctl, which has support for polkit; I guess dbus-send does not have it. Anyway, this really does not look like a bug in systemd.
What about all other applications? The bug is not in dbus-send.
Just use any Dbus debuggers, like qt6-qdbusviewer. It will throw the same error: "Interactive authentication required".
I guess they need to implement the support as well. This needs to be handled in the client, not on the systemd side. > I guess they need to implement the support as well. This needs to be handled in the client, not on the systemd side.
How? Do you have a link to the documentation? In Fedora 39 it works fine out of the box. In other Linux distributions too.
Yes, looks like the BUS_MESSAGE_ALLOW_INTERACTIVE_AUTHORIZATION flag is required now. It is not set by default in latest systemd versions. busctl with --allow-interactive-authorization=false will throw the same error: $ busctl --allow-interactive-authorization=false call org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager StartUnit ss tuned.service replace Call failed: Interactive authentication required. |