extern int security_load_booleans(char *path);
extern int security_get_boolean_names(char ***names, int *len);
extern int security_get_boolean_pending(const char *name);
extern int security_get_boolean_active(const char *name);
extern int security_set_boolean(const char *name, int value);
extern int security_commit_booleans(void);
The SELinux policy can include conditional rules that are enabled or disabled based on the current values of a set of policy booleans. These policy booleans allow runtime modification of the security policy without having to load a new policy.
The SELinux API allows for a transaction based update. So you can set several boolean values and the commit them all at once.
Load policy boolean settings. Path may be NULL, in which case the booleans are loaded from the active policy boolean configuration file.
Returns a list of boolean names, currently supported by the loaded policy.
Sets the pending value for boolean
Return pending value for boolean
Return active value for boolean
Commit all pending values for the booleans.