xccdf_policy Struct Reference
[Xccdf_policy]

XCCDF policy structure is abstract (class) structure of Profile element from benchmark. More...

#include <xccdf_policy.h>

Public Member Functions

struct xccdf_select_iteratorxccdf_policy_get_selected_rules (struct xccdf_policy *)
 Get selected rules from policy.
bool xccdf_policy_evaluate (struct xccdf_policy *)
 Evaluate policy.
struct xccdf_profilexccdf_policy_get_profile (const struct xccdf_policy *)
struct xccdf_select_iteratorxccdf_policy_get_rules (const struct xccdf_policy *)
struct
xccdf_value_binding_iterator * 
xccdf_policy_get_values (const struct xccdf_policy *)
bool xccdf_policy_add_rule (struct xccdf_policy *, struct xccdf_select *)
bool xccdf_policy_add_value (struct xccdf_policy *, struct xccdf_value_binding *)
bool xccdf_policy_set_selected (struct xccdf_policy *policy, char *idref)

Data Fields

struct xccdf_profileprofile
struct oscap_listrules
struct oscap_listvalues

Detailed Description

XCCDF policy structure is abstract (class) structure of Profile element from benchmark.

Handle: Xccdf_policy.

Structure contains rules and bound values to abstract these lists from the benchmark file. Can be modified temporaly so changes can be discarded or saved to the existing model.


Member Function Documentation

bool xccdf_policy_add_rule ( struct xccdf_policy ,
struct xccdf_select  
)
bool xccdf_policy_add_value ( struct xccdf_policy ,
struct xccdf_value_binding  
)
bool xccdf_policy_evaluate ( struct xccdf_policy  ) 

Evaluate policy.

Returns:
true if evaluation pass or false in case of error
struct xccdf_profile * xccdf_policy_get_profile ( const struct xccdf_policy  )  [read]
struct xccdf_select_iterator * xccdf_policy_get_rules ( const struct xccdf_policy  )  [read]
struct xccdf_select_iterator * xccdf_policy_get_selected_rules ( struct xccdf_policy  )  [read]

Get selected rules from policy.

Returns:
Pointer to select iterator.
Return values:
NULL on faliure
struct xccdf_value_binding_iterator * xccdf_policy_get_values ( const struct xccdf_policy  )  [read]
bool xccdf_policy_set_selected ( struct xccdf_policy policy,
char *  idref 
)

The documentation for this struct was generated from the following files:

Generated on 24 Mar 2010 for Open SCAP Library by  doxygen 1.6.1