Function rcl_get_enforcement_policy
Defined in File security.h
Function Documentation
-
rcl_ret_t rcl_get_enforcement_policy(rmw_security_enforcement_policy_t *policy)
Get security enforcement policy from the environment.
Sets
policybased on the value of theROS_SECURITY_STRATEGYenvironment variable. IfROS_SECURITY_STRATEGYis “Enforce”,policywill beRMW_SECURITY_ENFORCEMENT_ENFORCE. If not,policywill beRMW_SECURITY_ENFORCEMENT_PERMISSIVE.- Parameters:
policy – [out] Must not be NULL.
- Returns:
RCL_RET_INVALID_ARGUMENT if an argument is not valid, or
- Returns:
RCL_RET_ERROR if an unexpected error happened, or
- Returns: