|
BSL v1.1.1 - 19.g31939de
AMMOS Bundle Protocol Security Library (BSL)
|
Represents a policy rule. More...
#include <policy_provider/SamplePolicyProvider.h>
Collaboration diagram for BSLP_PolicyRule_t:Data Fields | |
| string_t | description |
| Human-friendly text. | |
| BSL_SecRole_e | role |
| Role for this operation. | |
| uint64_t | target_block_type |
| Block type of the security target to match. | |
| BSL_SecBlockType_e | sec_block_type |
| Needed security type (i.e. BPSec block type) | |
| int64_t | context_id |
| Needed security context. | |
| BSLB_IdValPairPtrList_t | options |
| Security operation options for this rule. | |
| BSL_PolicyAction_e | failure_action_code |
| How to handle failure in finalize stage. | |
Represents a policy rule.
A policy rule contains parameters and other metadata necessary to create populated Security Operations for a given bundle.
It first contains a predicate, which is used to identify whether this rule applies to a given bundle.
It then uses the other fields to create and populate security operations with details (type, role, parameter values, etc.)
| int64_t BSLP_PolicyRule_t::context_id |
Needed security context.
Referenced by BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_InitFrom(), and BSLP_PolicyRule_IsConsistent().
| string_t BSLP_PolicyRule_t::description |
Human-friendly text.
Referenced by BSLP_PolicyRule_Deinit(), BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_Init(), BSLP_PolicyRule_InitFrom(), and BSLP_QueryPolicy().
| BSL_PolicyAction_e BSLP_PolicyRule_t::failure_action_code |
How to handle failure in finalize stage.
Referenced by BSLP_PolicyRule_EvaluateAsSecOper(), and BSLP_PolicyRule_InitFrom().
| BSLB_IdValPairPtrList_t BSLP_PolicyRule_t::options |
Security operation options for this rule.
Referenced by BSLP_PolicyRule_AddOption(), BSLP_PolicyRule_Deinit(), BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_Init(), and BSLP_PolicyRule_IsConsistent().
| BSL_SecRole_e BSLP_PolicyRule_t::role |
Role for this operation.
Referenced by BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_InitFrom(), and BSLP_PolicyRule_IsConsistent().
| BSL_SecBlockType_e BSLP_PolicyRule_t::sec_block_type |
Needed security type (i.e. BPSec block type)
Referenced by BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_InitFrom(), and BSLP_PolicyRule_IsConsistent().
| uint64_t BSLP_PolicyRule_t::target_block_type |
Block type of the security target to match.
Referenced by BSLP_PolicyRule_EvaluateAsSecOper(), BSLP_PolicyRule_InitFrom(), and BSLP_QueryPolicy().