Closed Yuusha0 closed 2 years ago
cc @aleivag, it looks like this is handled upstream by https://www.freedesktop.org/software/systemd/man/sd_bus_message_set_allow_interactive_authorization.html
i'll check when was that added to systemd interface ... if we implement that, that means that pystemd will stop working for older versions of systemd.
Looks like this goes back to 220, so it's probably ok: https://github.com/systemd/systemd/commit/c0765ddb74f20046c406a3ac99f34719d767f151
I might be the only one who doesn't see this, but do the above three comments mean that there is now a workaround? Could we elaborate on that, if so?
Trying to Enable unit with EnableUnitFiles fails with pystemd.dbusexc.DBusInteractiveAuthorizationRequiredError. I cannot find a way in pystemd to enable Interactive Authorization.
You can find a test case here : https://framabin.org/p/?d1d698c4f63daad7#nguiuyQ77FS4PIntbRr7RMTy5Lko/nNyAu//Z3M5Wyk=.
This functionality is implemented in other python dbus like dbus-next. And it is implemented in Perl too. You can found an example of usage in Perl here.