1security_get_boolean_names(3S)ELinux API Documentatisoencurity_get_boolean_names(3)
2
3
4
6 security_load_booleans, security_set_boolean, security_commit_booleans,
7 security_get_boolean_names, security_get_boolean_active, secu‐
8 rity_get_boolean_pending - routines for manipulating SELinux boolean
9 values
10
12 #include <selinux/selinux.h>
13
14 extern int security_load_booleans(char *path);
15
16 extern int security_get_boolean_names(char ***names, int *len);
17
18 extern int security_get_boolean_pending(const char *name);
19
20 extern int security_get_boolean_active(const char *name);
21
22 extern int security_set_boolean(const char *name, int value);
23
24 extern int security_commit_booleans(void);
25
26
27
29 The SELinux policy can include conditional rules that are enabled or
30 disabled based on the current values of a set of policy booleans.
31 These policy booleans allow runtime modification of the security policy
32 without having to load a new policy.
33
34 The SELinux API allows for a transaction based update. So you can set
35 several boolean values and the commit them all at once.
36
37 security_load_booleans
38
39 Load policy boolean settings. Path may be NULL, in which case the bool‐
40 eans are loaded from the active policy boolean configuration file.
41
42 security_get_boolean_names
43
44 Returns a list of boolean names, currently supported by the loaded pol‐
45 icy.
46
47 security_set_boolean
48
49 Sets the pending value for boolean
50
51 security_get_boolean_pending
52
53 Return pending value for boolean
54
55 security_get_boolean_active
56
57 Return active value for boolean
58
59 security_commit_booleans
60
61 Commit all pending values for the booleans.
62
63
65 This manual page was written by Dan Walsh <dwalsh@redhat.com>.
66
67
69 selinux(8), getsebool(8), booleans(8), togglesebool(8)
70
71
72
73dwalsh@redhat.com 15 November 2004 security_get_boolean_names(3)