| 1 |
.TH semanage_bool_set_local 3 "4 January 2006" "[email protected]" "Libsemanage API documentation" |
| 2 |
.SH "NAME" |
| 3 |
semanage_bool_set_active \- update an existing SELinux boolean in the currently active policy |
| 4 |
|
| 5 |
.SH "SYNOPSIS" |
| 6 |
.B #include <semanage/booleans_active.h> |
| 7 |
.br |
| 8 |
.sp |
| 9 |
.B extern int semanage_bool_set_active ( |
| 10 |
.br |
| 11 |
.BI " semanage_handle_t *" handle "," |
| 12 |
.br |
| 13 |
.BI " const semanage_bool_key_t *" key "," |
| 14 |
.br |
| 15 |
.BI " const semanage_bool_t *" data ");" |
| 16 |
|
| 17 |
.SH "DESCRIPTION" |
| 18 |
.TP |
| 19 |
.B Behavior: |
| 20 |
The set function will fail if no matching key is found in the local store. Otherwise, the provided object will replace the current one. When |
| 21 |
.BR semanage_commit "(3)" |
| 22 |
is invoked, changes will be written permanently into the local store, and will be loaded into policy. Validity of the object being added is checked at commit time. |
| 23 |
|
| 24 |
.TP |
| 25 |
.B Parameters: |
| 26 |
The |
| 27 |
.I handle |
| 28 |
is used to track persistent state across semanage calls, and for error reporting. The |
| 29 |
.I key |
| 30 |
identifies the |
| 31 |
.I data |
| 32 |
object, which will be written into the store. The key are data are properties of the caller, and are not stored or modified internally. |
| 33 |
|
| 34 |
.TP |
| 35 |
.B Requirements: |
| 36 |
This function requires an semanage connection to be established (see |
| 37 |
.BR semanage_connect "(3)" |
| 38 |
), and must be executed in a transaction (see |
| 39 |
.BR semanage_begin_transaction "(3)" |
| 40 |
). |
| 41 |
|
| 42 |
.SH "RETURN VALUE" |
| 43 |
In case of failure, \-1 is returned, and the semanage error callback is invoked, describing the error. |
| 44 |
Otherwise 0 is returned. |
| 45 |
|
| 46 |
.SH "SEE ALSO" |
| 47 |
.BR semanage_handle_create "(3), " semanage_begin_transaction "(3), " semanage_connect "(3), " semanage_commit "(3). " |