/[pdpsoft]/trunk/grid-mw-security/ees/src/eval_man/pdl.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/eval_man/pdl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1163 by aramv, Fri Nov 20 14:04:55 2009 UTC revision 1164 by aramv, Fri Nov 20 16:39:07 2009 UTC
# Line 311  void print_policies(policy_t* policies){ Line 311  void print_policies(policy_t* policies){
311    return;    return;
312  }  }
313    
314    /* TODO fix */
315  /* tries to link all policy rules to a plugin in the plugin manager */  /* tries to link all policy rules to a plugin in the plugin manager */
316  EES_RC link_rules_to_plugins(policy_t* policies){  EES_RC link_rules_to_plugins(policy_t* policies){
317    policy_t *temp_policy = policies;    policy_t *temp_policy = policies;
# Line 322  EES_RC link_rules_to_plugins(policy_t* p Line 323  EES_RC link_rules_to_plugins(policy_t* p
323      while(temp_rule){      while(temp_rule){
324        temp_var = get_variable_by_name(temp_rule->state);        temp_var = get_variable_by_name(temp_rule->state);
325        temp_rule->plugin = get_plugin(temp_var->value);        temp_rule->plugin = get_plugin(temp_var->value);
326        temp_rule = temp_rule->next;        temp_rule = temp_rule->true_branch;
327        }
328        temp_rule = temp_policy->rules;
329        while(temp_rule){
330          temp_var = get_variable_by_name(temp_rule->state);
331          temp_rule->plugin = get_plugin(temp_var->value);
332          temp_rule = temp_rule->false_branch;
333      }      }
334      temp_policy = temp_policy->next;      temp_policy = temp_policy->next;
335    }    }

Legend:
Removed from v.1163  
changed lines
  Added in v.1164

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28