1semanage_bool_set_local(3)Libsemanage API documentatiosnemanage_bool_set_local(3)
2
3
4
6 semanage_bool_set_active - update an existing SELinux boolean in the
7 currently active policy
8
9
11 #include <semanage/booleans_active.h>
12
13 extern int semanage_bool_set_active (
14 semanage_handle_t *handle,
15 const semanage_bool_key_t *key,
16 const semanage_bool_t *data);
17
18
20 Behavior:
21 The set function will fail if no matching key is found in the
22 local store. Otherwise, the provided object will replace the
23 current one. When semanage_commit(3) is invoked, changes will be
24 written permanently into the local store, and will be loaded
25 into policy. Validity of the object being added is checked at
26 commit time.
27
28
29 Parameters:
30 The handle is used to track persistent state across semanage
31 calls, and for error reporting. The key identifies the data
32 object, which will be written into the store. The key are data
33 are properties of the caller, and are not stored or modified
34 internally.
35
36
37 Requirements:
38 This function requires an semanage connection to be established
39 (see semanage_connect(3) ), and must be executed in a transac‐
40 tion (see semanage_begin_transaction(3) ).
41
42
44 In case of failure, -1 is returned, and the semanage error callback is
45 invoked, describing the error. Otherwise 0 is returned.
46
47
49 semanage_handle_create(3), semanage_begin_transaction(3), semanage_con‐
50 nect(3), semanage_commit(3).
51
52
53
54ivg2@cornell.edu 4 January 2006 semanage_bool_set_local(3)