Debian Codegraph @

libselinux/man/man5/booleans.5

raw
1 .TH "booleans" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
2 .SH "NAME"
3 booleans \- The SELinux booleans configuration files
4 .
5 .SH "DESCRIPTION"
6 The \fIbooleans\fR file, if present contains booleans to support a specific distribution.
7 .sp
8 The \fIbooleans.local\fR file, if present contains locally generated booleans.
9 .sp
10 Both files contain a list of boolean names and their associated values.
11 .sp
12 Generally the \fIbooleans\fR and/or \fIbooleans.local\fR files are not present (they have been deprecated). However if there is an SELinux-aware application that uses the libselinux functions listed below, then these files may be present:
13 .sp
14 .RS
15 .BR security_set_boolean_list "(3) "
16 .RS
17 Writes a \fIbooleans.local\fR file if flag \fIpermanent\fR = \fI1\fR.
18 .sp
19 .RE
20 .RE
21 .RS
22 .BR security_load_booleans "(3) "
23 .RS
24 Looks for a \fIbooleans\fR and/or \fIbooleans.local\fR file at \fBselinux_booleans_path\fR(3) unless a specific path is specified as a parameter.
25 .RE
26 .RE
27 .sp
28 \fBbooleans\fR(8) has details on booleans and \fBsetsebool\fR(8) describes how booleans can now be set persistent across reboots.
29 .sp
30 \fBselinux_booleans_path\fR(3) will return the active policy path to these files. The default boolean files are:
31 .RS
32 .I /etc/selinux/{SELINUXTYPE}/booleans
33 .br
34 .I /etc/selinux/{SELINUXTYPE}/booleans.local
35 .RE
36 .sp
37 Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
38 .
39 .SH "FILE FORMAT"
40 Both boolean files have the same format and contain one or more boolean names and their value.
41 .sp
42 The format is:
43 .RS
44 .I boolean_name
45 .I value
46 .sp
47 .RE
48 Where:
49 .RS
50 .I boolean_name
51 .RS
52 The name of the boolean.
53 .RE
54 .I value
55 .RS
56 The default setting for the boolean. This can be one of the following:
57 .RS
58 .IR true " | " false " | " 1 " | " 0
59 .RE
60 .RE
61 .RE
62 .sp
63 Note that if
64 .B SETLOCALDEFS
65 is set in the SELinux
66 .I config
67 file (see
68 .BR selinux_config "(5)), then " selinux_mkload_policy "(3) will check for a "
69 .I booleans.local
70 file in the
71 .BR selinux_booleans_path (3)
72 and also a
73 .I local.users
74 file (see
75 .BR local.users "(5)) in the " selinux_users_path "(3). "
76 .
77 .SH "SEE ALSO"
78 .ad l
79 .nh
80 .BR selinux "(8), " booleans "(8), " setsebool "(8), " semanage "(8), " selinux_booleans_path "(3), " security_set_boolean_list "(3), " security_load_booleans "(3), " selinux_mkload_policy "(3), " selinux_users_path "(3), " selinux_config "(5), " local.users "(5) "