summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-06 20:25:56 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-07 15:42:25 +0200
commitceb242292630b4633aa707b565585a1e8bcbfeb8 (patch)
treeb46791f8fb0f05668140c3a16bd3f8e450b9bb4c /src/libsystemd/sd-bus/bus-util.h
parent527b7a421ff3927d4f3f170b1b143452e88ae1dc (diff)
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.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-util.h')
-rw-r--r--src/libsystemd/sd-bus/bus-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-util.h b/src/libsystemd/sd-bus/bus-util.h
index 9f048711de..cc16a9d694 100644
--- a/src/libsystemd/sd-bus/bus-util.h
+++ b/src/libsystemd/sd-bus/bus-util.h
@@ -69,7 +69,7 @@ int bus_name_has_owner(sd_bus *c, const char *name, sd_bus_error *error);
int bus_check_peercred(sd_bus *c);
-int bus_verify_polkit(sd_bus_message *call, int capability, const char *action, bool interactive, uid_t good_user, bool *_challenge, sd_bus_error *e);
+int bus_test_polkit(sd_bus_message *call, int capability, const char *action, uid_t good_user, bool *_challenge, sd_bus_error *e);
int bus_verify_polkit_async(sd_bus_message *call, int capability, const char *action, bool interactive, uid_t good_user, Hashmap **registry, sd_bus_error *error);
void bus_verify_polkit_async_registry_free(Hashmap *registry);