BSL v1.1.1 - 19.g31939de
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
BSLP_PolicyRule_t Struct Reference

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.
 

Detailed Description

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.)

Field Documentation

◆ context_id

int64_t BSLP_PolicyRule_t::context_id

◆ description

string_t BSLP_PolicyRule_t::description

◆ failure_action_code

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().

◆ options

◆ role

BSL_SecRole_e BSLP_PolicyRule_t::role

◆ sec_block_type

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().

◆ target_block_type

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().


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