Re:Heap-based buffer overflow in Sudo
by Spivak on Tuesday February 09, 2021 @10:57AM
(#26078969)
You don't actually have to be root at all to manage systemd services. If you give the user `org.freedesktop.systemd1.manage-units` in Polkit then they can just run systemctl as their user and it will work.
If you only want to allow specific units the authorizer is passed the unit under `action.lookup("unit")`.
If you only want to allow specific units the authorizer is passed the unit under `action.lookup("unit")`.