diff options
author | David Zeuthen <davidz@redhat.com> | 2007-09-27 13:46:29 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2007-09-27 13:46:29 -0400 |
commit | 5b60edc135496fa4bdc9f1623a7b22501adb77a9 (patch) | |
tree | 922e5ab9b0da1a6b52c8f4009cd658c6403fc252 | |
parent | b420cc512b3277cac57c2c2231adf80cefd7e764 (diff) |
make polkit-list-actions print information about <allow_any>
-rw-r--r-- | tools/polkit-list-actions.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 (PolKitPolicyFileEntry *pfe) { 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)); |