|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Load Xen security policy, manage FLASK enforcing mode, convert context to SID, manage ocontexts and other FLASK-related tasks. More...
Files | |
| file | flask.h |
| Xen XSM FLASK operations. | |
Functions | |
| int | flask_context_to_sid (char *buf, uint32_t size, uint32_t *sid) |
| convert context string to numerical SID | |
| int | flask_getenforce (void) |
| get current FLASK enforcing mode | |
Load Xen security policy, manage FLASK enforcing mode, convert context to SID, manage ocontexts and other FLASK-related tasks.
#include <flask.h>
convert context string to numerical SID
This function issues the FLASK_CONTEXT_TO_SID hypercall to obtain Security ID that corresponds to given security context in loaded policy.
CONFIG_XEN_FLASK.
| buf | context string |
| size | length of context string |
| sid | output pointer to receive corresponding SID. |
| 0 | On success |
| -errno | Negative errno code on failure. |
| int flask_getenforce | ( | void | ) |
#include <flask.h>
get current FLASK enforcing mode
This function issues the FLASK_GETENFORCE hypercall to obtain current enforcing mode.
CONFIG_XEN_FLASK.
| 0 | Permissive Mode |
| 1 | Enforcing Mode |
| -errno | Negative errno code on failure. |