From 84e42887d413cba0039f92f0c56a25c70c20fe6e Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Thu, 7 Jun 2012 11:43:20 -0400 Subject: [PATCH] docs: add a "make sure your app works when there's no polkitd(8)" note Signed-off-by: David Zeuthen --- docs/polkit/overview.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/polkit/overview.xml b/docs/polkit/overview.xml index a979172..0639d30 100644 --- a/docs/polkit/overview.xml +++ b/docs/polkit/overview.xml @@ -103,6 +103,28 @@ + + + DO make sure + your application works even when the + org.freedesktop.PolicyKit1 + D-Bus service is not available (this can + happen if + polkitd8 + is not installed or if the polkit.service systemd unit/service has been + masked). If you are using the + libpolkit-gobject-1 library this + means handling + polkit_authority_get_sync() + or + polkit_authority_get_finish() + returning NULL. + An appropriate way of dealing with the polkit authority + not being available, could be to allow only uid 0 to + perform operations, forbid all operations or something + else. + + -- 2.7.4