{
int i;
gboolean allowed;
+ gboolean is_temporary;
char *gidstring;
+ char **out_is_privileged_but_restricted;
GString *str;
str = g_string_new ("");
}
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);
}
my_exit (1);
}
fprintf (f,
- "[Policy]\n"
+ "[Privilege]\n"
+ "SufficientPrivileges=\n"
+ "RequiredPrivileges=\n"
"Allow=%s\n"
"Deny=%s\n",
allow_rule, deny_rule);