#include "pdl.h"
#include "pdl_rule.h"
Include dependency graph for pdl_policy.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | policy_s |
Keeping track of found policies. More... | |
Typedefs | |
typedef struct policy_s | policy_t |
Keeping track of found policies. More... | |
Functions | |
void | add_policy (record_t *policy, rule_t *rules) |
void | remove_policy (record_t *name) |
void | show_policies (void) |
void | free_policies (void) |
void | allow_rules (BOOL allow) |
BOOL | check_policies_for_recursion (void) |
void | reduce_policies (void) |
BOOL | policies_have_been_reduced (void) |
policy_t* | find_policy (const char *name) |
policy_t* | current_policy (void) |
policy_t* | get_policies (void) |
Definition in file pdl_policy.h.
|
Keeping track of found policies.
|
|
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. Referenced by _add_policy().
|
|
Check for recursions in the policy rules.
Definition at line 190 of file pdl_policy.c. |
|
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. Referenced by _add_policy(), and _add_rule().
|
|
Free all policies and their allocated resources. Definition at line 271 of file pdl_policy.c. |
|
Get the list of policies.
Definition at line 244 of file pdl_policy.c. |
|
Tell if the reduce_policy() call has been called.
Definition at line 293 of file pdl_policy.c. |
|
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. |