[systemd-devel] org.freedesktop.systemd1.manage-units - which unit?

Ian Pilcher arequipeno at gmail.com
Thu Sep 26 15:15:41 UTC 2019


I am writing a PolicyKit rule to allow a non-root user to restart a
service (via D-bus).  It looks like this will be the
org.freedesktop.systemd1.manage-units "action", but I can't see a way to
determine *which* unit is being managed (or what the action is - start/
stop/restart/reload).

Are there any variables associated with this action that my rule can
use?  If not, is there any way to give a particular user permission to
perform only some actions on only some units?

Thanks!

-- 
========================================================================
Ian Pilcher                                         arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================



More information about the systemd-devel mailing list