|
Chris PeBenito |
473ea7 |
.TH "security_get_boolean_names" "3" "15 November 2004" "dwalsh@redhat.com" "SELinux API Documentation"
|
|
Chris PeBenito |
473ea7 |
.SH "NAME"
|
|
Chris PeBenito |
473ea7 |
security_load_booleans, security_set_boolean, security_commit_booleans,
|
|
Chris PeBenito |
473ea7 |
security_get_boolean_names, security_get_boolean_active,
|
|
Chris PeBenito |
473ea7 |
security_get_boolean_pending \- routines for manipulating SELinux boolean values
|
|
Chris PeBenito |
473ea7 |
.SH "SYNOPSIS"
|
|
Chris PeBenito |
473ea7 |
.B #include <selinux/selinux.h>
|
|
Chris PeBenito |
473ea7 |
.sp
|
|
Chris PeBenito |
473ea7 |
extern int security_load_booleans(char *path);
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
extern int security_get_boolean_names(char ***names, int *len);
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
extern int security_get_boolean_pending(const char *name);
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
extern int security_get_boolean_active(const char *name);
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
extern int security_set_boolean(const char *name, int value);
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
extern int security_commit_booleans(void);
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
.SH "DESCRIPTION"
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
The SELinux policy can include conditional rules that are enabled or
|
|
Chris PeBenito |
473ea7 |
disabled based on the current values of a set of policy booleans.
|
|
Chris PeBenito |
473ea7 |
These policy booleans allow runtime modification of the security
|
|
Chris PeBenito |
473ea7 |
policy without having to load a new policy.
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
The SELinux API allows for a transaction based update. So you can set several boolean values and the commit them all at once.
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
security_load_booleans
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
Load policy boolean settings. Path may be NULL, in which case the booleans are loaded from the active policy boolean configuration file.
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
security_get_boolean_names
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
Returns a list of boolean names, currently supported by the loaded policy.
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
security_set_boolean
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
Sets the pending value for boolean
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
security_get_boolean_pending
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
Return pending value for boolean
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
security_get_boolean_active
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
Return active value for boolean
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
security_commit_booleans
|
|
Chris PeBenito |
473ea7 |
.br
|
|
Chris PeBenito |
473ea7 |
Commit all pending values for the booleans.
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
.SH AUTHOR
|
|
Chris PeBenito |
473ea7 |
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
.SH "SEE ALSO"
|
|
Chris PeBenito |
473ea7 |
getsebool(8), booleans(8), togglesebool(8)
|