The *_session variants of the policy default allow values were removed
in 2007:
    http://lists.freedesktop.org/archives/hal-commit/2007-August/003690.html

Instead of auth_self_keep_session, use auth_self_keep. Similarly for
auth_admin_keep_session.

This fixes parsing the default policy with any recent version of polkit
— tested with version 0.105. Previously, I believe polkit aborted
parsing the policy and hence never added the actions to its action pool
for use in rule files or authorisations.
---
 plugins/polkit.policy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/polkit.policy b/plugins/polkit.policy
index 0c2629a..0de152c 100644
--- a/plugins/polkit.policy
+++ b/plugins/polkit.policy
@@ -13,7 +13,7 @@
     <message>Policy prevents modification of settings</message>
     <defaults>
       <allow_inactive>no</allow_inactive>
-      <allow_active>auth_self_keep_session</allow_active>
+      <allow_active>auth_self_keep</allow_active>
     </defaults>
   </action>
 
@@ -22,7 +22,7 @@
     <message>Policy prevents modification of secrets</message>
     <defaults>
       <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin_keep_session</allow_active>
+      <allow_active>auth_admin_keep</allow_active>
     </defaults>
   </action>
 
-- 
1.9.3

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to