aboutsummaryrefslogtreecommitdiff
blob: 867d248351bedaddaeac4e6d056ea90c0473b1ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
.\" Man page generated from reStructuredText.
.
.TH SALT_SELINUX 8 "2014-08-15" "" "SELinux"
.SH NAME
salt_selinux \- SELinux policy module for Salt
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.SH DESCRIPTION
.sp
The \fBsalt\fP SELinux module supports the Salt configuration management (as
offered by Saltstack) tools and resources.
.SH BOOLEANS
.sp
The following booleans are defined through the \fBsalt\fP SELinux policy module.
They can be toggled using \fBsetsebool\fP, like so:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
setsebool \-P salt_master_read_nfs on
.ft P
.fi
.UNINDENT
.UNINDENT
.INDENT 0.0
.TP
.B salt_master_read_nfs
Should be enabled if the Salt state files (SLS) are stored on an NFS mount
.TP
.B salt_minion_manage_nfs
Should be enabled if the Salt minion needs manage privileges on NFS mounts
.UNINDENT
.SH DOMAINS
.SS salt_master_t
.sp
The \fBsalt_master_t\fP domain is used by the Salt master. It is usually launched
by the init script \fBsalt\-master\fP although it can also be launched through the
command line command \fBsalt\-master \-d\fP.
.sp
This domain is responsible for servicing the Salt minions. Unlike the Salt
minion domain (\fBsalt_minion_t\fP) the master domain is not very privileged as it
only provides access to the Salt state files.
.SS salt_minion_t
.sp
The \fBsalt_minion_t\fP domain is used by the Salt minion. It is usually launched
by the init script \fBsalt\-minion\fP although it can also be launched through the
command line command \fBsalt\-minion \-d\fP.
.sp
This domain is responsible for enforcing the state as provided by the Salt
master on the system. This makes the \fBsalt_minion_t\fP domain a \fIvery
privileged\fP domain.
.SH LOCATIONS
.SS FUNCTIONAL
.sp
The following list of locations identify file resources that are used by the
Salt domains. They are by default allocated towards the default locations for
Salt, so if you use a different location, you will need to properly address
this. You can do so through \fBsemanage\fP, like so:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
semanage fcontext \-a \-t salt_sls_t "/var/lib/salt/state(/.*)?"
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The above example marks the \fI/var/lib/salt/state\fP location as the location where
the Salt state files (\fB*.sls\fP) are stored (identified through the
\fBsalt_sls_t\fP type).
.INDENT 0.0
.TP
.B salt_sls_t
is used for the Salt state files (\fI/srv/salt\fP)
.TP
.B salt_pki_t
is used as the parent directory in which the master and minion keys are stored
(\fI/etc/salt/pki\fP)
.TP
.B salt_master_pki_t
is used for the private and public keys managed by the Salt master
(\fI/etc/salt/pki/master\fP)
.TP
.B salt_minion_pki_t
is used for the private and public keys managed by the Salt minion
(\fI/etc/salt/pki/minion\fP)
.UNINDENT
.SS EXEUTABLES
.INDENT 0.0
.TP
.B salt_master_exec_t
is used as entry point for the Salt master (\fBsalt_master_t\fP)
.TP
.B salt_minion_exec_t
is used as entry point for the Salt minion (\fBsalt_minion_t\fP)
.TP
.B salt_master_initrc_exec_t
is used for the init script to launch the salt master
.TP
.B salt_minion_initrc_exec_t
is used for the init script to launch the salt minion
.UNINDENT
.SS DAEMON FILES
.INDENT 0.0
.TP
.B salt_cache_t
is used for the parent directory for Salt caches (\fI/var/cache/salt\fP)
.TP
.B salt_master_cache_t
is used to store the Salt master cache (\fI/var/cache/salt/master\fP)
.TP
.B salt_minion_cache_t
is used to store the Salt minion cache (\fI/var/cache/salt/minion\fP)
.TP
.B salt_log_t
is used for the parent directory for Salt log files (\fI/var/log/salt\fP)
.TP
.B salt_master_log_t
is used for the Salt master log file (\fI/var/log/salt/master\fP)
.TP
.B salt_minion_log_t
is used for the Salt minion log file (\fI/var/log/salt/minion\fP)
.TP
.B salt_var_run_t
is used for the parent directory for Salt run\-time files (\fI/var/run/salt\fP)
.TP
.B salt_master_var_run_t
is used for the Salt master variable run\-time files (\fI/var/run/salt/master\fP)
.TP
.B salt_minion_var_run_t
is used for the Salt minion variable run\-time files (\fI/var/run/salt/minion\fP)
.UNINDENT
.SS CONFIGURATION FILES
.INDENT 0.0
.TP
.B salt_etc_t
is used for the Salt configuration (\fI/etc/salt\fP)
.UNINDENT
.SH POLICY
.sp
The following interfaces can be used to enhance the default policy with
Salt\-related provileges. More details on these interfaces can be found in the
interface HTML documentation, we will not list all available interfaces here.
.SS Role interfaces
.sp
The following role interfaces allow users and roles access to the specified
domains. Only to be used for user domains and roles.
.INDENT 0.0
.TP
.B salt_admin_master
is used for user domains to allow administration of a Salt master environment
.TP
.B salt_minion_master
is used for user domains to allow administration of a Salt minion environment
.UNINDENT
.SH SEE ALSO
.INDENT 0.0
.IP \(bu 2
Gentoo and SELinux at \fI\%https://wiki.gentoo.org/wiki/SELinux\fP
.IP \(bu 2
Gentoo Hardened SELinux Project at
\fI\%https://wiki.gentoo.org/wiki/Project:Hardened\fP
.UNINDENT
.SH AUTHOR
Sven Vermeulen <swift@gentoo.org>
.\" Generated by docutils manpage writer.
.