Timeline for Why does my program with d-bus access to systemd to start and stop services end in permission error on a multi user embedded system
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 10, 2022 at 7:15 | comment | added | Stewart | I've spent as much time as I'm willing to get you an answer. man systemd-logind.service explicitly says it uses polkit for user operations. It does not appear to be configurable. I suspect you'd need to replace systemd-logind with your own home-built solution. | |
| Sep 10, 2022 at 6:53 | comment | added | Stewart | Browsing freedesktop.org/software/systemd/man, I see 15 man pages which would be relevant. That's going to take a few hours to read. I'll ammend the answer if I find anything. | |
| Sep 10, 2022 at 6:52 | comment | added | Stewart | Possibly, but it wouldn't be in the sd-bus API. That's a runtime API which we shouldn't be able to use to elevate our privileges. The change would need to be in systemd's configuration. I'm guessing something related to PAM. | |
| Sep 9, 2022 at 19:56 | comment | added | preetam | Is there any way to open up the system bus completely for any user ? This is an embedded system and the user accounts are not typical users. Can I losen up the systemd system bus? | |
| Sep 9, 2022 at 19:13 | comment | added | preetam | Thank you very much for the detailed explanation. However, unfortunately, I am on an embedded system running yocto - open embedded distro. My distro doesn't have polkit in it. | |
| Sep 9, 2022 at 7:21 | history | edited | Stewart | CC BY-SA 4.0 | deleted 2 characters in body |
| Sep 9, 2022 at 6:23 | history | answered | Stewart | CC BY-SA 4.0 |