summaryrefslogtreecommitdiff
path: root/src/up-polkit.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-12Raise the hard PolKit dep to 0.97Richard Hughes1-4/+0
2013-01-29Fix memory leak in up_polkit_get_subject()Charles Kerr1-1/+2
dbus_g_method_get_sender() returns a newly allocated copy which we need to free. https://bugs.freedesktop.org/show_bug.cgi?id=47424
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes1-6/+4
2010-08-19Fix up_polkit_get_subject() D-BUS error returnMatthias Clasen1-0/+7
All callers of up_polkit_get_subject() just exit without returning an error to the D-BUS caller if they fail to get the PolicyKit subject. Do that in up_polkit_get_subject() itself now, for convenience. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-19Fix double D-BUS return in up_daemon_*_allowedMatthias Clasen1-5/+2
Do not send a D-BUS return message any more in up_polkit_is_allowed(), since this makes it hard for callers to ensure that they return exactly one result to the D-BUS caller. Instead, just pass a GError to the caller. Update up_daemon_suspend_allowed() and up_daemon_hibernate_allowed() accordingly, to always return either a result or an error. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-19Revert "Add missing D-Bus return in up_qos_cancel_request()"Martin Pitt1-9/+5
This reverts commit 1fc5aae71f474f82ba62c7a92be3aef05cc7ebef.
2010-08-19Add missing D-Bus return in up_qos_cancel_request()Matthias Clasen1-5/+9
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-10Ensure we've initialized errors when calling into PolicyKitRichard Hughes1-4/+10
2010-08-10Fix compile with the latest PolicyKit releaseRichard Hughes1-0/+10
2010-06-05Port to GTestRichard Hughes1-27/+0
2010-02-09Add up_polkit_is_allowed() functionMartin Pitt1-0/+29
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
2010-01-27Update the Free Software Foundation addressRichard Hughes1-1/+1
2010-01-18trivial: DkpPolkit -> UpPolkit (no ABI or API break)Richard Hughes1-37/+37
2010-01-18trivial: DkpDaemon -> UpDaemon (no ABI or API break)Richard Hughes1-2/+2
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes1-0/+261
ABI changes