PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Thu Sep 27 10:49:43 PDT 2007


 tools/polkit-list-actions.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
diff-tree 5b60edc135496fa4bdc9f1623a7b22501adb77a9 (from b420cc512b3277cac57c2c2231adf80cefd7e764)
Author: David Zeuthen <davidz at redhat.com>
Date:   Thu Sep 27 13:46:29 2007 -0400

    make polkit-list-actions print information about <allow_any>

diff --git a/tools/polkit-list-actions.c b/tools/polkit-list-actions.c
index 1342e6d..54e381d 100644
--- a/tools/polkit-list-actions.c
+++ b/tools/polkit-list-actions.c
@@ -67,22 +67,26 @@ _print_details_for_entry (PolKitPolicyFi
 {
         const char *action_id;
         PolKitPolicyDefault *def;
+        PolKitResult default_any;
         PolKitResult default_inactive;
         PolKitResult default_active;
 
         action_id = polkit_policy_file_entry_get_id (pfe);
         def = polkit_policy_file_entry_get_default (pfe);
+        default_any = polkit_policy_default_get_allow_any (def);
         default_inactive = polkit_policy_default_get_allow_inactive (def);
         default_active = polkit_policy_default_get_allow_active (def);
 
         printf ("action_id:        %s\n"
                 "description:      %s\n"
                 "message:          %s\n"
+                "default_any:      %s\n"
                 "default_inactive: %s\n"
                 "default_active:   %s\n",
                 action_id,
                 polkit_policy_file_entry_get_action_description (pfe),
                 polkit_policy_file_entry_get_action_message (pfe),
+                polkit_result_to_string_representation (default_any),
                 polkit_result_to_string_representation (default_inactive),
                 polkit_result_to_string_representation (default_active));
 


More information about the hal-commit mailing list