1mock_selinux(8)               SELinux Policy mock              mock_selinux(8)
2
3
4

NAME

6       mock_selinux - Security Enhanced Linux Policy for the mock processes
7

DESCRIPTION

9       Security-Enhanced  Linux secures the mock processes via flexible manda‐
10       tory access control.
11
12       The mock processes execute with the mock_t SELinux type. You can  check
13       if  you  have  these processes running by executing the ps command with
14       the -Z qualifier.
15
16       For example:
17
18       ps -eZ | grep mock_t
19
20
21

ENTRYPOINTS

23       The mock_t SELinux type can be entered via the mock_exec_t file type.
24
25       The default entrypoint paths for the mock_t domain are the following:
26
27       /usr/sbin/mock, /usr/libexec/mock/mock
28

PROCESS TYPES

30       SELinux defines process types (domains) for each process running on the
31       system
32
33       You can see the context of a process using the -Z option to ps
34
35       Policy  governs  the  access confined processes have to files.  SELinux
36       mock policy is very flexible allowing users to setup  their  mock  pro‐
37       cesses in as secure a method as possible.
38
39       The following process types are defined for mock:
40
41       mock_t, mock_build_t
42
43       Note:  semanage  permissive  -a  mock_t can be used to make the process
44       type mock_t permissive. SELinux does  not  deny  access  to  permissive
45       process  types, but the AVC (SELinux denials) messages are still gener‐
46       ated.
47
48

BOOLEANS

50       SELinux policy is customizable based on least  access  required.   mock
51       policy is extremely flexible and has several booleans that allow you to
52       manipulate the policy and run mock with the tightest access possible.
53
54
55
56       If you want to allow mock to read files in home directories,  you  must
57       turn on the mock_enable_homedirs boolean. Disabled by default.
58
59       setsebool -P mock_enable_homedirs 1
60
61
62
63       If you want to allow users to resolve user passwd entries directly from
64       ldap rather then using a sssd server, you  must  turn  on  the  authlo‐
65       gin_nsswitch_use_ldap boolean. Disabled by default.
66
67       setsebool -P authlogin_nsswitch_use_ldap 1
68
69
70
71       If you want to allow all domains to execute in fips_mode, you must turn
72       on the fips_mode boolean. Enabled by default.
73
74       setsebool -P fips_mode 1
75
76
77
78       If you want to allow confined applications to run  with  kerberos,  you
79       must turn on the kerberos_enabled boolean. Enabled by default.
80
81       setsebool -P kerberos_enabled 1
82
83
84
85       If  you  want  to  allow  system  to run with NIS, you must turn on the
86       nis_enabled boolean. Disabled by default.
87
88       setsebool -P nis_enabled 1
89
90
91
92       If you want to allow confined applications to use nscd  shared  memory,
93       you must turn on the nscd_use_shm boolean. Disabled by default.
94
95       setsebool -P nscd_use_shm 1
96
97
98

MANAGED FILES

100       The  SELinux process type mock_t can manage files labeled with the fol‐
101       lowing file types.  The paths listed are the default  paths  for  these
102       file types.  Note the processes UID still need to have DAC permissions.
103
104       cifs_t
105
106
107       lvm_lock_t
108
109            /etc/lvm/lock(/.*)?
110            /var/lock/lvm(/.*)?
111            /var/lock/dmraid(/.*)?
112
113       mock_cache_t
114
115            /var/cache/mock(/.*)?
116
117       mock_tmp_t
118
119
120       mock_var_lib_t
121
122            /var/lib/mock(/.*)?
123
124       mock_var_run_t
125
126
127       mount_var_run_t
128
129            /run/mount(/.*)?
130            /dev/.mount(/.*)?
131            /var/run/mount(/.*)?
132            /var/run/davfs2(/.*)?
133            /var/cache/davfs2(/.*)?
134
135       nfs_t
136
137
138       rpm_tmp_t
139
140
141       rpm_var_cache_t
142
143            /var/cache/dnf(/.*)?
144            /var/cache/yum(/.*)?
145            /var/spool/up2date(/.*)?
146            /var/cache/PackageKit(/.*)?
147
148       rpm_var_lib_t
149
150            /var/lib/dnf(/.*)?
151            /var/lib/rpm(/.*)?
152            /var/lib/yum(/.*)?
153            /var/lib/PackageKit(/.*)?
154            /var/lib/alternatives(/.*)?
155            /var/lib/rpmrebuilddb.*(/.*)?
156
157       sysfs_t
158
159            /sys(/.*)?
160
161       systemd_passwd_var_run_t
162
163            /var/run/systemd/ask-password(/.*)?
164            /var/run/systemd/ask-password-block(/.*)?
165
166       user_home_t
167
168            /home/[^/]+/.+
169
170

FILE CONTEXTS

172       SELinux requires files to have an extended attribute to define the file
173       type.
174
175       You can see the context of a file using the -Z option to ls
176
177       Policy governs the access  confined  processes  have  to  these  files.
178       SELinux mock policy is very flexible allowing users to setup their mock
179       processes in as secure a method as possible.
180
181       STANDARD FILE CONTEXT
182
183       SELinux defines the file context types for the mock, if you  wanted  to
184       store  files  with  these types in a diffent paths, you need to execute
185       the semanage command  to  sepecify  alternate  labeling  and  then  use
186       restorecon to put the labels on disk.
187
188       semanage fcontext -a -t mock_etc_t '/srv/mymock_content(/.*)?'
189       restorecon -R -v /srv/mymock_content
190
191       Note:  SELinux  often  uses  regular expressions to specify labels that
192       match multiple files.
193
194       The following file types are defined for mock:
195
196
197
198       mock_build_exec_t
199
200       - Set files with the mock_build_exec_t type, if you want to  transition
201       an executable to the mock_build_t domain.
202
203
204
205       mock_cache_t
206
207       -  Set files with the mock_cache_t type, if you want to store the files
208       under the /var/cache directory.
209
210
211
212       mock_etc_t
213
214       - Set files with the mock_etc_t type, if you want to store  mock  files
215       in the /etc directories.
216
217
218
219       mock_exec_t
220
221       -  Set  files  with  the mock_exec_t type, if you want to transition an
222       executable to the mock_t domain.
223
224
225       Paths:
226            /usr/sbin/mock, /usr/libexec/mock/mock
227
228
229       mock_tmp_t
230
231       - Set files with the mock_tmp_t type, if you want to store mock  tempo‐
232       rary files in the /tmp directories.
233
234
235
236       mock_var_lib_t
237
238       - Set files with the mock_var_lib_t type, if you want to store the mock
239       files under the /var/lib directory.
240
241
242
243       mock_var_run_t
244
245       - Set files with the mock_var_run_t type, if you want to store the mock
246       files under the /run or /var/run directory.
247
248
249
250       Note:  File context can be temporarily modified with the chcon command.
251       If you want to permanently change the file context you need to use  the
252       semanage fcontext command.  This will modify the SELinux labeling data‐
253       base.  You will need to use restorecon to apply the labels.
254
255

COMMANDS

257       semanage fcontext can also be used to manipulate default  file  context
258       mappings.
259
260       semanage  permissive  can  also  be used to manipulate whether or not a
261       process type is permissive.
262
263       semanage module can also be used to enable/disable/install/remove  pol‐
264       icy modules.
265
266       semanage boolean can also be used to manipulate the booleans
267
268
269       system-config-selinux is a GUI tool available to customize SELinux pol‐
270       icy settings.
271
272

AUTHOR

274       This manual page was auto-generated using sepolicy manpage .
275
276

SEE ALSO

278       selinux(8), mock(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
279       setsebool(8), mock_build_selinux(8), mock_build_selinux(8)
280
281
282
283mock                               19-06-18                    mock_selinux(8)
Impressum