#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "lcmaps_log.h"
#include "pdl_policy.h"
Include dependency graph for pdl_policy.c:

Go to the source code of this file.
Functions | |
| BOOL | _add_policy (const record_t *name, const rule_t *rules) |
| policy_t* | current_policy (void) |
| void | allow_rules (BOOL allow) |
| void | add_policy (record_t *policy, rule_t *rules) |
| void | remove_policy (record_t *policy) |
| policy_t* | find_policy (const char *name) |
| BOOL | check_policies_for_recursion (void) |
| void | reduce_policies (void) |
| policy_t* | get_policies (void) |
| void | show_policies (void) |
| void | free_policies (void) |
| BOOL | policies_have_been_reduced (void) |
Variables | |
| BOOL | policies_reduced = FALSE |
| Tell if reduce_policy() has been called. | |
Definition in file pdl_policy.c.
|
|
Add a policy with its rules to the list of policies. Before the policy name is actually added to list of policies, a check is made to see weather or not a policy by the same name exists. if it does, the policy name will not be added and an error message is displayed, letting the user know that the configuration file contains multiple policy rules with the same name.
Definition at line 118 of file pdl_policy.c. Referenced by add_policy().
|
|
|
Wrapper around the _add_policy(name) function. When the _add_policy() call fails, this function cleans up the data structure allocated for holding information about the policy that was found. See _add_policy() for information about the kind of reasons it can fail.
Definition at line 84 of file pdl_policy.c. |
|
|
Allow or disallow the additions of rules depending on the argument. When for example a policy is defined for the second time, an error should be generated, but the parsing should still continue. However, no rules can be added to the policy as there is currently no policy defined.
Definition at line 66 of file pdl_policy.c. |
|
|
Check for recursions in the policy rules.
Definition at line 190 of file pdl_policy.c. Referenced by startEvaluationManager().
|
|
|
Return the current policy.
Definition at line 50 of file pdl_policy.c. |
|
|
Find a policy based.
Definition at line 171 of file pdl_policy.c. |
|
|
Free all policies and their allocated resources. Definition at line 271 of file pdl_policy.c. Referenced by free_resources().
|
|
|
Get the list of policies.
Definition at line 244 of file pdl_policy.c. Referenced by check_policies_for_recursion(), get_plugins(), pdl_next_plugin(), and reduce_policies().
|
|
|
Tell if the reduce_policy() call has been called.
Definition at line 293 of file pdl_policy.c. Referenced by get_plugins().
|
|
|
Reduce_policies to its elemantry form, i.e. each policy has a list of rules which need to be reduced. Definition at line 217 of file pdl_policy.c. |
|
|
Remove a policy from the list of policies and free all associated resources of the policy.
Definition at line 157 of file pdl_policy.c. |
|
|
Display the policies and the rules associated with the policy. Definition at line 254 of file pdl_policy.c. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001