Age | Commit message (Collapse) | Author | Files | Lines |
|
With the removal of the suspend/hibernate code, there's no longer
a need for upower to depend on polkit. This patch removes the old
polkit code.
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
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>
|
|
This reverts commit 1fc5aae71f474f82ba62c7a92be3aef05cc7ebef.
|
|
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
|
|
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
|
|
|
|
|
|
ABI changes
|