[systemd-devel] Avoid polkit queries from systemctl in package maintainer scripts/when running as root?

Martin Pitt martin.pitt at ubuntu.com
Tue Apr 5 06:28:21 UTC 2016


Hello,

Lennart Poettering [2016-04-04 21:28 +0200]:
> We already bypass PK if the client is privileged. See
> bus_verify_polkit_async() in src/shared/bus-util.c, the calls for
> sd_bus_query_sender_privilege(). Are you saying that bypass doesn't
> work for you?

Right, it still calls Polkit as root normally. But if it's not really
meant to do that, then let's just treat it as a bug and track it in
https://github.com/systemd/systemd/issues/2748, I'll look into that.

Thanks!

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the systemd-devel mailing list