summaryrefslogtreecommitdiff
path: root/src/up-polkit.h
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-02-08 17:44:05 +0100
committerRichard Hughes <richard@hughsie.com>2010-02-09 10:42:34 +0000
commita057e36751aa7885c9ce9fc43cad4e975498fc60 (patch)
tree38e51587ee11d9c5a748657639676b916361e39c /src/up-polkit.h
parent1738ac30b779a87f9d4d1a2a0f3ace2385d789a7 (diff)
Add up_polkit_is_allowed() function
Add a new polkit helper function up_polkit_is_allowed() which checks whether the caller has or can get a particular privilege, but without interactive authentication. https://bugs.freedesktop.org/show_bug.cgi?id=26473
Diffstat (limited to 'src/up-polkit.h')
-rw-r--r--src/up-polkit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/up-polkit.h b/src/up-polkit.h
index dbc858d..acee70e 100644
--- a/src/up-polkit.h
+++ b/src/up-polkit.h
@@ -57,6 +57,10 @@ gboolean up_polkit_check_auth (UpPolkit *polkit,
PolkitSubject *subject,
const gchar *action_id,
DBusGMethodInvocation *context);
+gboolean up_polkit_is_allowed (UpPolkit *polkit,
+ PolkitSubject *subject,
+ const gchar *action_id,
+ DBusGMethodInvocation *context);
gboolean up_polkit_get_uid (UpPolkit *polkit,
PolkitSubject *subject,
uid_t *uid);