Loading...
Searching...
No Matches
xccdf_policy.h
Go to the documentation of this file.
/*
* Copyright 2009--2014 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef XCCDF_POLICY_H_
#define XCCDF_POLICY_H_
#include <xccdf_benchmark.h>
#include <stdbool.h>
#include <time.h>
#include <oscap.h>
#include "oscap_export.h"
#include "oval_definitions.h"
struct xccdf_policy_model;
struct xccdf_policy;
struct xccdf_value_binding;
struct xccdf_value_binding_iterator;
struct xccdf_policy_iterator;
typedef enum {
POLICY_ENGINE_QUERY_NAMES_FOR_HREF = 1,
POLICY_ENGINE_QUERY_OVAL_DEFS_FOR_HREF = 2,
} xccdf_policy_engine_query_t;
typedef void *(*xccdf_policy_engine_query_fn) (void *, xccdf_policy_engine_query_t, void *);
typedef xccdf_test_result_type_t (*xccdf_policy_engine_eval_fn) (struct xccdf_policy *policy, const char *rule_id, const char *definition_id, const char *href_if, struct xccdf_value_binding_iterator *value_binding_it, struct xccdf_check_import_iterator *check_imports_it, void *user_data);
/************************************************************/
OSCAP_API struct xccdf_policy_model *xccdf_policy_model_new(struct xccdf_benchmark *benchmark);
OSCAP_API struct xccdf_policy * xccdf_policy_new(struct xccdf_policy_model * model, struct xccdf_profile * profile);
OSCAP_API struct xccdf_value_binding * xccdf_value_binding_new(void);
OSCAP_API void xccdf_policy_model_free(struct xccdf_policy_model *);
OSCAP_API void xccdf_policy_free(struct xccdf_policy *);
OSCAP_API void xccdf_value_binding_free(struct xccdf_value_binding *);
OSCAP_API bool xccdf_policy_model_set_tailoring(struct xccdf_policy_model *model, struct xccdf_tailoring *tailoring);
OSCAP_API struct xccdf_tailoring *xccdf_policy_model_get_tailoring(struct xccdf_policy_model *model);
OSCAP_API bool xccdf_policy_get_show_rule_details(struct xccdf_policy *policy);
OSCAP_API void xccdf_policy_model_set_show_rule_details(struct xccdf_policy_model *policy_model, bool show_rule_details);
OSCAP_API char *xccdf_policy_get_readable_item_title(struct xccdf_policy *policy, struct xccdf_item *item, const char *preferred_lang);
OSCAP_API char *xccdf_policy_get_readable_item_rationale(struct xccdf_policy *policy, struct xccdf_item *item, const char *preferred_lang);
OSCAP_API char *xccdf_policy_get_readable_item_description(struct xccdf_policy *policy, struct xccdf_item *item, const char *preferred_lang);
OSCAP_API bool xccdf_policy_model_add_cpe_dict_source(struct xccdf_policy_model * model, struct oscap_source *source);
OSCAP_API bool xccdf_policy_model_add_cpe_dict(struct xccdf_policy_model * model, const char * cpe_dict);
OSCAP_API bool xccdf_policy_model_add_cpe_lang_model_source(struct xccdf_policy_model * model, struct oscap_source *source);
OSCAP_API bool xccdf_policy_model_add_cpe_autodetect_source(struct xccdf_policy_model *model, struct oscap_source *source);
OSCAP_API struct oscap_htable_iterator *xccdf_policy_model_get_cpe_oval_sessions(struct xccdf_policy_model *model);
OSCAP_API bool xccdf_policy_model_register_engine_and_query_callback(struct xccdf_policy_model *model, char *sys, xccdf_policy_engine_eval_fn eval_fn, void *usr, xccdf_policy_engine_query_fn query_fn);
typedef int (*policy_reporter_output)(struct xccdf_rule_result *, void *);
OSCAP_API bool xccdf_policy_model_register_output_callback(struct xccdf_policy_model * model, policy_reporter_output func, void * usr);
typedef int (*policy_reporter_start)(struct xccdf_rule *, void *);
OSCAP_API bool xccdf_policy_model_register_start_callback(struct xccdf_policy_model * model, policy_reporter_start func, void * usr);
typedef int (*policy_reporter_multicheck)(struct oval_definition*, void *);
OSCAP_API bool xccdf_policy_model_register_multicheck_callback(struct xccdf_policy_model *model, policy_reporter_multicheck func, void *usr);
/************************************************************/
OSCAP_API struct xccdf_policy_model * xccdf_policy_get_model(const struct xccdf_policy * policy);
OSCAP_API struct xccdf_benchmark * xccdf_policy_model_get_benchmark(const struct xccdf_policy_model * item);
OSCAP_API struct xccdf_value_binding_iterator * xccdf_policy_get_values(const struct xccdf_policy * item);
OSCAP_API struct xccdf_policy_iterator * xccdf_policy_model_get_policies(const struct xccdf_policy_model *model);
OSCAP_API int xccdf_policy_model_build_all_useful_policies(struct xccdf_policy_model *policy_model);
OSCAP_API struct xccdf_select_iterator * xccdf_policy_get_selected_rules(struct xccdf_policy *);
OSCAP_API struct xccdf_profile * xccdf_policy_get_profile(const struct xccdf_policy *);
OSCAP_API struct xccdf_select_iterator * xccdf_policy_get_selects(const struct xccdf_policy *);
OSCAP_API char * xccdf_value_binding_get_name(const struct xccdf_value_binding *);
OSCAP_API char * xccdf_value_binding_get_value(const struct xccdf_value_binding *);
OSCAP_API xccdf_value_type_t xccdf_value_binding_get_type(const struct xccdf_value_binding *);
OSCAP_API xccdf_operator_t xccdf_value_binding_get_operator(const struct xccdf_value_binding *);
OSCAP_API char * xccdf_value_binding_get_setvalue(const struct xccdf_value_binding *);
OSCAP_API struct xccdf_result_iterator * xccdf_policy_get_results(const struct xccdf_policy * policy);
OSCAP_API struct xccdf_result * xccdf_policy_get_result_by_id(struct xccdf_policy * policy, const char * id);
OSCAP_API const char * xccdf_policy_get_id(struct xccdf_policy * policy);
OSCAP_API struct xccdf_policy * xccdf_policy_model_get_policy_by_id(struct xccdf_policy_model * policy_model, const char * id);
/************************************************************/
/************************************************************/
OSCAP_API bool xccdf_policy_model_add_policy(struct xccdf_policy_model *, struct xccdf_policy *);
OSCAP_API bool xccdf_policy_add_select(struct xccdf_policy *, struct xccdf_select *);
OSCAP_API bool xccdf_policy_add_result(struct xccdf_policy * policy, struct xccdf_result * item);
OSCAP_API bool xccdf_policy_add_value(struct xccdf_policy *, struct xccdf_value_binding *);
OSCAP_API bool xccdf_policy_is_item_selected(struct xccdf_policy *policy, const char *id);
OSCAP_API int xccdf_policy_get_selected_rules_count(struct xccdf_policy *policy);
OSCAP_API struct xccdf_select * xccdf_policy_get_select_by_id(struct xccdf_policy * policy, const char *item_id);
/************************************************************/
/************************************************************/
OSCAP_API struct xccdf_result * xccdf_policy_evaluate(struct xccdf_policy * policy);
OSCAP_API bool xccdf_policy_resolve(struct xccdf_policy * policy);
OSCAP_API int xccdf_policy_generate_fix(struct xccdf_policy *policy, struct xccdf_result *result, const char *sys, const char *input_file_name, struct oscap_source *tailoring, int output_fd, int raw);
struct oscap_file_entry;
OSCAP_API struct oscap_file_entry *oscap_file_entry_new(void);
OSCAP_API struct oscap_file_entry *oscap_file_entry_dup(struct oscap_file_entry* file_entry);
OSCAP_API void oscap_file_entry_free(struct oscap_file_entry* entry);
OSCAP_API const char* oscap_file_entry_get_system(struct oscap_file_entry* entry);
OSCAP_API const char* oscap_file_entry_get_file(struct oscap_file_entry* entry);
struct oscap_file_entry_iterator;
OSCAP_API const struct oscap_file_entry *oscap_file_entry_iterator_next(struct oscap_file_entry_iterator *it);
OSCAP_API bool oscap_file_entry_iterator_has_more(struct oscap_file_entry_iterator *it);
OSCAP_API void oscap_file_entry_iterator_free(struct oscap_file_entry_iterator *it);
OSCAP_API void oscap_file_entry_iterator_reset(struct oscap_file_entry_iterator *it);
struct oscap_file_entry_list;
OSCAP_API struct oscap_file_entry_list* oscap_file_entry_list_new(void);
OSCAP_API void oscap_file_entry_list_free(struct oscap_file_entry_list* list);
OSCAP_API struct oscap_file_entry_iterator* oscap_file_entry_list_get_files(struct oscap_file_entry_list* list);
OSCAP_API struct oscap_file_entry_list * xccdf_policy_model_get_systems_and_files(struct xccdf_policy_model * policy_model);
OSCAP_API struct oscap_file_entry_list * xccdf_item_get_systems_and_files(struct xccdf_item * item);
OSCAP_API struct oscap_stringlist * xccdf_policy_model_get_files(struct xccdf_policy_model * policy_model);
OSCAP_API struct oscap_stringlist * xccdf_item_get_files(struct xccdf_item * item);
OSCAP_API xccdf_test_result_type_t xccdf_test_result_resolve_and_operation(xccdf_test_result_type_t A, xccdf_test_result_type_t B);
/************************************************************/
/************************************************************/
OSCAP_API bool xccdf_policy_iterator_has_more(struct xccdf_policy_iterator *it);
OSCAP_API struct xccdf_policy * xccdf_policy_iterator_next(struct xccdf_policy_iterator *it);
OSCAP_API void xccdf_policy_iterator_free(struct xccdf_policy_iterator *it);
OSCAP_API void xccdf_policy_iterator_reset(struct xccdf_policy_iterator *it);
OSCAP_API bool xccdf_value_binding_iterator_has_more(struct xccdf_value_binding_iterator *it);
OSCAP_API struct xccdf_value_binding * xccdf_value_binding_iterator_next(struct xccdf_value_binding_iterator *it);
OSCAP_API void xccdf_value_binding_iterator_free(struct xccdf_value_binding_iterator *it);
OSCAP_API void xccdf_value_binding_iterator_reset(struct xccdf_value_binding_iterator *it);
OSCAP_API struct xccdf_score * xccdf_policy_get_score(struct xccdf_policy * policy, struct xccdf_result * test_result, const char * system);
OSCAP_API int xccdf_policy_recalculate_score(struct xccdf_policy * policy, struct xccdf_result * test_result);
OSCAP_API const char *xccdf_policy_get_value_of_item(struct xccdf_policy * policy, struct xccdf_item * item);
OSCAP_API char* xccdf_policy_substitute(const char *text, struct xccdf_policy *policy);
/************************************************************/
#endif
xccdf_policy_iterator::xccdf_policy_iterator_reset
OSCAP_API void xccdf_policy_iterator_reset(struct xccdf_policy_iterator *it)
Reset the iterator structure (it will point to the first item in the list).
xccdf_policy::xccdf_policy_is_item_selected
OSCAP_API bool xccdf_policy_is_item_selected(struct xccdf_policy *policy, const char *id)
Get the selection settings of the item.
Definition xccdf_policy.c:651
xccdf_item_get_files
OSCAP_API struct oscap_stringlist * xccdf_item_get_files(struct xccdf_item *item)
Return names of files that are used in checks of particular rules.
Definition xccdf_policy.c:1558
xccdf_policy_model_add_cpe_dict
OSCAP_API bool xccdf_policy_model_add_cpe_dict(struct xccdf_policy_model *model, const char *cpe_dict)
Registers an additional CPE dictionary for applicability testing The one embedded in the evaluated XC...
Definition xccdf_policy.c:1653
xccdf_policy_model::xccdf_policy_model_new
OSCAP_API struct xccdf_policy_model * xccdf_policy_model_new(struct xccdf_benchmark *benchmark)
Constructor of Policy Model structure.
Definition xccdf_policy.c:1780
xccdf_policy_model_get_systems_and_files
OSCAP_API struct oscap_file_entry_list * xccdf_policy_model_get_systems_and_files(struct xccdf_policy_model *policy_model)
Return names of files that are used in checks of particular rules.
Definition xccdf_policy.c:2284
xccdf_policy::xccdf_policy_generate_fix
OSCAP_API int xccdf_policy_generate_fix(struct xccdf_policy *policy, struct xccdf_result *result, const char *sys, const char *input_file_name, struct oscap_source *tailoring, int output_fd, int raw)
Generate remediation prescription (presumably a remediation script).
Definition xccdf_policy_remediate.c:2002
xccdf_policy_model::xccdf_policy_get_results
OSCAP_API struct xccdf_result_iterator * xccdf_policy_get_results(const struct xccdf_policy *policy)
Get results of all XCCDF Policy results.
xccdf_value_binding::xccdf_value_binding_new
OSCAP_API struct xccdf_value_binding * xccdf_value_binding_new(void)
Constructor of structure with profile bindings - refine_rules, refine_values and set_values.
Definition xccdf_policy.c:1964
xccdf_policy::xccdf_policy_get_selects
OSCAP_API struct xccdf_select_iterator * xccdf_policy_get_selects(const struct xccdf_policy *)
Get rules from Policy.
xccdf_policy_engine_eval_fn
xccdf_test_result_type_t(* xccdf_policy_engine_eval_fn)(struct xccdf_policy *policy, const char *rule_id, const char *definition_id, const char *href_if, struct xccdf_value_binding_iterator *value_binding_it, struct xccdf_check_import_iterator *check_imports_it, void *user_data)
Type of function which implements OpenSCAP checking engine.
Definition xccdf_policy.h:103
xccdf_policy_model_add_cpe_autodetect_source
OSCAP_API bool xccdf_policy_model_add_cpe_autodetect_source(struct xccdf_policy_model *model, struct oscap_source *source)
Registers an additional CPE resource (either dictionary or language) Autodetects given file and acts ...
Definition xccdf_policy.c:1672
xccdf_policy_model_get_files
OSCAP_API struct oscap_stringlist * xccdf_policy_model_get_files(struct xccdf_policy_model *policy_model)
Return names of files that are used in checks of particular rules.
Definition xccdf_policy.c:2289
xccdf_policy::xccdf_policy_add_select
OSCAP_API bool xccdf_policy_add_select(struct xccdf_policy *, struct xccdf_select *)
Add rule to Policy.
Definition xccdf_policy.c:1861
xccdf_policy::xccdf_policy_new
OSCAP_API struct xccdf_policy * xccdf_policy_new(struct xccdf_policy_model *model, struct xccdf_profile *profile)
Constructor of Policy structure.
Definition xccdf_policy.c:1914
xccdf_policy_get_score
OSCAP_API struct xccdf_score * xccdf_policy_get_score(struct xccdf_policy *policy, struct xccdf_result *test_result, const char *system)
Get score of the XCCDF Benchmark.
Definition xccdf_policy.c:2231
xccdf_policy_get_show_rule_details
OSCAP_API bool xccdf_policy_get_show_rule_details(struct xccdf_policy *policy)
Get whether rule details such as description or rationale should be shown in command line output.
Definition xccdf_policy.c:159
xccdf_value_binding::xccdf_value_binding_get_name
OSCAP_API char * xccdf_value_binding_get_name(const struct xccdf_value_binding *)
Get variable name from value bindings.
xccdf_policy_engine_query_fn
void *(* xccdf_policy_engine_query_fn)(void *, xccdf_policy_engine_query_t, void *)
Type of function which implements queries defined within xccdf_policy_engine_query_t.
Definition xccdf_policy.h:93
xccdf_policy::xccdf_policy_get_model
OSCAP_API struct xccdf_policy_model * xccdf_policy_get_model(const struct xccdf_policy *policy)
Get model from Policy (parent structure of Policy to access the benchmark).
xccdf_policy::xccdf_policy_get_select_by_id
OSCAP_API struct xccdf_select * xccdf_policy_get_select_by_id(struct xccdf_policy *policy, const char *item_id)
Get select from policy by specified ID of XCCDF Item.
Definition xccdf_policy.c:1988
xccdf_policy_engine_query_t
xccdf_policy_engine_query_t
Type of a query over checking-engine data.
Definition xccdf_policy.h:72
xccdf_policy_iterator::xccdf_policy_iterator_free
OSCAP_API void xccdf_policy_iterator_free(struct xccdf_policy_iterator *it)
Free the iterator structure (it makes no changes to the list structure).
xccdf_policy::xccdf_policy_get_profile
OSCAP_API struct xccdf_profile * xccdf_policy_get_profile(const struct xccdf_policy *)
Get XCCDF Profile from Policy.
xccdf_item_get_systems_and_files
OSCAP_API struct oscap_file_entry_list * xccdf_item_get_systems_and_files(struct xccdf_item *item)
Return names of files that are used in checks of particular rules.
Definition xccdf_policy.c:1449
xccdf_value_binding::xccdf_value_binding_get_value
OSCAP_API char * xccdf_value_binding_get_value(const struct xccdf_value_binding *)
Get value from value bindings.
xccdf_policy::xccdf_policy_get_values
OSCAP_API struct xccdf_value_binding_iterator * xccdf_policy_get_values(const struct xccdf_policy *item)
Get Value Bindings from XCCDF Policy.
xccdf_policy_iterator::xccdf_policy_iterator_has_more
OSCAP_API bool xccdf_policy_iterator_has_more(struct xccdf_policy_iterator *it)
Return true if the list is not empty, false otherwise.
xccdf_value_binding::xccdf_value_binding_free
OSCAP_API void xccdf_value_binding_free(struct xccdf_value_binding *)
Destructor of Value binding structure.
Definition xccdf_policy.c:2387
xccdf_policy::xccdf_policy_add_value
OSCAP_API bool xccdf_policy_add_value(struct xccdf_policy *, struct xccdf_value_binding *)
Add value binding to the Policy structure.
xccdf_value_binding::xccdf_value_binding_get_type
OSCAP_API xccdf_value_type_t xccdf_value_binding_get_type(const struct xccdf_value_binding *)
get variable type from value bindings
xccdf_policy_model::xccdf_policy_model_get_policies
OSCAP_API struct xccdf_policy_iterator * xccdf_policy_model_get_policies(const struct xccdf_policy_model *model)
Get policies from Policy Model.
xccdf_policy_model::xccdf_policy_get_result_by_id
OSCAP_API struct xccdf_result * xccdf_policy_get_result_by_id(struct xccdf_policy *policy, const char *id)
Get XCCDF Result structure by it's idetificator if there is one.
Definition xccdf_policy.c:1752
xccdf_policy_model::xccdf_policy_model_add_policy
OSCAP_API bool xccdf_policy_model_add_policy(struct xccdf_policy_model *, struct xccdf_policy *)
Add Policy to Policy Model.
xccdf_policy::xccdf_policy_evaluate
OSCAP_API struct xccdf_result * xccdf_policy_evaluate(struct xccdf_policy *policy)
Call the checking engine for each selected rule in given policy structure.
Definition xccdf_policy.c:2136
xccdf_policy_model_set_tailoring
OSCAP_API bool xccdf_policy_model_set_tailoring(struct xccdf_policy_model *model, struct xccdf_tailoring *tailoring)
Sets the Tailoring element to use in the policy.
Definition xccdf_policy.c:1624
xccdf_policy_substitute
OSCAP_API char * xccdf_policy_substitute(const char *text, struct xccdf_policy *policy)
Perform textual substitution of cdf:sub elements with respect to given XCCDF policy.
Definition xccdf_policy_substitute.c:210
xccdf_policy_iterator::xccdf_policy_iterator_next
OSCAP_API struct xccdf_policy * xccdf_policy_iterator_next(struct xccdf_policy_iterator *it)
Return the next xccdf_policy structure from the list and increment the iterator.
xccdf_policy_model::xccdf_policy_model_get_policy_by_id
OSCAP_API struct xccdf_policy * xccdf_policy_model_get_policy_by_id(struct xccdf_policy_model *policy_model, const char *id)
Get XCCDF Policy from Policy model by speciefied ID of Profile.
Definition xccdf_policy.c:2005
xccdf_policy_model_get_cpe_oval_sessions
OSCAP_API struct oscap_htable_iterator * xccdf_policy_model_get_cpe_oval_sessions(struct xccdf_policy_model *model)
Retrieves an iterator of all OVAL sessions created for CPE applicability evaluation key is the OVAL h...
Definition xccdf_policy.c:1680
xccdf_policy_model_add_cpe_lang_model_source
OSCAP_API bool xccdf_policy_model_add_cpe_lang_model_source(struct xccdf_policy_model *model, struct oscap_source *source)
Registers an additional CPE lang model for applicability testing The one embedded in the evaluated XC...
Definition xccdf_policy.c:1664
xccdf_policy_model_add_cpe_dict_source
OSCAP_API bool xccdf_policy_model_add_cpe_dict_source(struct xccdf_policy_model *model, struct oscap_source *source)
Registers an additional CPE dictionary for applicability testing The one embedded in the evaluated XC...
Definition xccdf_policy.c:1645
xccdf_test_result_resolve_and_operation
OSCAP_API xccdf_test_result_type_t xccdf_test_result_resolve_and_operation(xccdf_test_result_type_t A, xccdf_test_result_type_t B)
Return result of the AND operation for two given attributes.
Definition xccdf_policy.c:330
xccdf_value_binding::xccdf_value_binding_get_setvalue
OSCAP_API char * xccdf_value_binding_get_setvalue(const struct xccdf_value_binding *)
get Set Value from value bindings
xccdf_policy_model::xccdf_policy_model_get_benchmark
OSCAP_API struct xccdf_benchmark * xccdf_policy_model_get_benchmark(const struct xccdf_policy_model *item)
Get Benchmark from Policy Model.
xccdf_policy_model_set_show_rule_details
OSCAP_API void xccdf_policy_model_set_show_rule_details(struct xccdf_policy_model *policy_model, bool show_rule_details)
Set whether rule details such as description or rationale should be shown in command line output.
Definition xccdf_policy.c:2395
xccdf_policy::xccdf_policy_resolve
OSCAP_API bool xccdf_policy_resolve(struct xccdf_policy *policy)
Resolve benchmark by applying all refine_rules and refine_values to rules / values of benchmark.
Definition xccdf_policy.c:2023
xccdf_value_binding::xccdf_value_binding_get_operator
OSCAP_API xccdf_operator_t xccdf_value_binding_get_operator(const struct xccdf_value_binding *)
get Value operator from value bindings
xccdf_policy_get_selected_rules_count
OSCAP_API int xccdf_policy_get_selected_rules_count(struct xccdf_policy *policy)
Retrieves number of selected items in the policy.
Definition xccdf_policy.c:664
xccdf_policy_model::xccdf_policy_model_build_all_useful_policies
OSCAP_API int xccdf_policy_model_build_all_useful_policies(struct xccdf_policy_model *policy_model)
Build all policies that can be useful for user.
Definition xccdf_policy_model.c:153
xccdf_policy_recalculate_score
OSCAP_API int xccdf_policy_recalculate_score(struct xccdf_policy *policy, struct xccdf_result *test_result)
Recalculate score of the XCCDF Benchmark.
Definition xccdf_policy.c:2237
xccdf_policy_model::xccdf_policy_add_result
OSCAP_API bool xccdf_policy_add_result(struct xccdf_policy *policy, struct xccdf_result *item)
Add result to XCCDF Policy Model.
xccdf_operator_t
xccdf_operator_t
Operator to be applied on an xccdf_value.
Definition xccdf_benchmark.h:101
xccdf_value_type_t
xccdf_value_type_t
Type of an xccdf_value.
Definition xccdf_benchmark.h:94
xccdf_test_result_type_t
xccdf_test_result_type_t
Test result.
Definition xccdf_benchmark.h:170
oscap.h
General OpenScap functions and types.
oval_definitions.h
oscap_file_entry_iterator
oscap_file_entry_list
oscap_file_entry
Definition xccdf_policy.c:1303
oscap_htable_iterator
Definition list.c:572
oscap_source
Definition oscap_source.c:66
oscap_stringlist
A collection of strings.
oval_definition
Oval definition specification.
Definition oval_definition.c:53
xccdf_benchmark
Top level XCCDF structure containing profiles, rules, values and results.
xccdf_check_import_iterator
Check import iterator.
xccdf_item
A base class for XCCDF items.
Definition item.h:220
xccdf_policy_iterator
Iterate through policies.
xccdf_policy_model
XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file a...
Definition xccdf_policy_priv.h:38
xccdf_policy_model::benchmark
struct xccdf_benchmark * benchmark
Benchmark element (root element of XML file).
Definition xccdf_policy_priv.h:40
xccdf_policy
XCCDF policy structure is abstract (class) structure of Profile element from benchmark.
Definition xccdf_policy_priv.h:58
xccdf_policy::model
struct xccdf_policy_model * model
XCCDF Policy model.
Definition xccdf_policy_priv.h:60
xccdf_policy::profile
struct xccdf_profile * profile
Profile structure (from benchmark).
Definition xccdf_policy_priv.h:61
xccdf_profile
XCCDF profile is a set of tests and their settings in a compact package.
xccdf_result_iterator
Result iterator.
xccdf_result
Actual results of running a XCCDF test or profile.
xccdf_rule_result
XCCDF rule result.
Definition item.h:344
xccdf_rule
XCCDF rule defines a test execution.
xccdf_score
XCCDF score.
Definition item.h:369
xccdf_select_iterator
Select iterator.
xccdf_select
XCCDF select option usen in the profile.
Definition item.h:253
xccdf_tailoring
Stores content from xccdf:Tailoring element which can be loaded from a separate file.
Definition item.h:171
xccdf_value_binding
XCCDF value binding structure is binding between Refine values, Set values, Value element and Check e...
Definition xccdf_policy.c:79
xccdf_benchmark.h
Open-scap XCCDF library interface.