chiark / gitweb /
polkit: rename bus_verify_polkit() to bus_test_polkit() and make it strictly non...
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Apr 2015 18:25:56 +0000 (20:25 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 06:51:14 +0000 (07:51 +0100)
commit634fb6b688ff14875134883f3e9a44fe02e9df5b
treee7a1483db942a9c7ed3d1bf01a3ca6ebf4bf8770
parent9db0dae86ec8bcab329b99b2f43f6e8e63d0ffa6
polkit: rename bus_verify_polkit() to bus_test_polkit() and make it strictly non-interactive

Interactive authorization should only happen asynchronously, hence
disallow it in synchronous bus_verify_polkit(), and rename it to
bus_test_polkit(). This way even if the bus message header asks for
interactive authorization, we'll ask for non-interactive authorization
which is actually the desired behaviour if CanSuspend, CanHibernate and
friends, which call this function.
src/libelogind/sd-bus/bus-util.c
src/libelogind/sd-bus/bus-util.h
src/login/logind-dbus.c