Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
polkit
polkit
Commits
5b60edc1
Commit
5b60edc1
authored
Sep 27, 2007
by
David Zeuthen
Browse files
make polkit-list-actions print information about <allow_any>
parent
b420cc51
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/polkit-list-actions.c
View file @
5b60edc1
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment