]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/bus-polkit.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
9 int bus_test_polkit(sd_bus_message
*call
, const char *action
, const char **details
, uid_t good_user
, bool *_challenge
, sd_bus_error
*e
);
11 int bus_verify_polkit_async_full(sd_bus_message
*call
, const char *action
, const char **details
, bool interactive
, uid_t good_user
, Hashmap
**registry
, sd_bus_error
*error
);
12 static inline int bus_verify_polkit_async(sd_bus_message
*call
, const char *action
, const char **details
, Hashmap
**registry
, sd_bus_error
*ret_error
) {
13 return bus_verify_polkit_async_full(call
, action
, details
, false, UID_INVALID
, registry
, ret_error
);
16 Hashmap
*bus_verify_polkit_async_registry_free(Hashmap
*registry
);