PolicyKit: Branch 'master'
Danny Kukawka
dkukawka at kemper.freedesktop.org
Mon Aug 21 11:44:08 PDT 2006
polkitd/polkitd-test.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
New commits:
diff-tree e97e945ee59320cb15ec81958b2fa1c08653a8f6 (from ae74decdae3b087e92f5d7408d05f3eef8d72718)
Author: Danny Kukawka <danny.kukawka at web.de>
Date: Mon Aug 21 20:41:21 2006 +0200
fix make distcheck
A quick (and dirty) fix to get 'make distcheck' complete running and
to fix polkitd-test
diff --git a/polkitd/polkitd-test.c b/polkitd/polkitd-test.c
index 13efa68..3d37955 100644
--- a/polkitd/polkitd-test.c
+++ b/polkitd/polkitd-test.c
@@ -82,7 +82,9 @@ do_check (const char *policy,
{
int i;
gboolean allowed;
+ gboolean is_temporary;
char *gidstring;
+ char **out_is_privileged_but_restricted;
GString *str;
str = g_string_new ("");
@@ -93,8 +95,15 @@ do_check (const char *policy,
}
gidstring = g_string_free (str, FALSE);
- if (POLICY_RESULT_OK != policy_is_uid_gid_allowed_for_policy (
- uid, num_gids, gids, policy, resource, &allowed)) {
+ if (POLICY_RESULT_OK != policy_is_uid_gid_allowed_for_policy ( uid,
+ num_gids,
+ gids,
+ policy,
+ resource,
+ &allowed,
+ &is_temporary,
+ out_is_privileged_but_restricted,
+ NULL, NULL)) {
g_warning ("fail: no policy %s", policy);
my_exit (1);
}
@@ -131,7 +140,9 @@ write_test_policy (const char *policy, c
my_exit (1);
}
fprintf (f,
- "[Policy]\n"
+ "[Privilege]\n"
+ "SufficientPrivileges=\n"
+ "RequiredPrivileges=\n"
"Allow=%s\n"
"Deny=%s\n",
allow_rule, deny_rule);
More information about the hal-commit
mailing list