]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-util.c
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)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Apr 2015 13:42:25 +0000 (15:42 +0200)
commitceb242292630b4633aa707b565585a1e8bcbfeb8
treeb46791f8fb0f05668140c3a16bd3f8e450b9bb4c
parent527b7a421ff3927d4f3f170b1b143452e88ae1dc
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/libsystemd/sd-bus/bus-util.c
src/libsystemd/sd-bus/bus-util.h
src/login/logind-dbus.c