1hotplug_selinux(8)          SELinux Policy hotplug          hotplug_selinux(8)
2
3
4

NAME

6       hotplug_selinux  -  Security Enhanced Linux Policy for the hotplug pro‐
7       cesses
8

DESCRIPTION

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

ENTRYPOINTS

24       The  hotplug_t  SELinux type can be entered via the hotplug_etc_t, hot‐
25       plug_exec_t file types.
26
27       The default entrypoint paths for the hotplug_t domain are  the  follow‐
28       ing:
29
30       /etc/hotplug(/.*)?,  /etc/hotplug.d/.*,  /sbin/hotplug, /sbin/netplugd,
31       /etc/hotplug/firmware.agent
32

PROCESS TYPES

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

BOOLEANS

54       SELinux policy is customizable based on least access required.  hotplug
55       policy is extremely flexible and has several booleans that allow you to
56       manipulate the policy and run hotplug with the tightest  access  possi‐
57       ble.
58
59
60
61       If you want to allow all daemons to write corefiles to /, you must turn
62       on the allow_daemons_dump_core boolean. Disabled by default.
63
64       setsebool -P allow_daemons_dump_core 1
65
66
67
68       If you want to allow all daemons to use tcp wrappers, you must turn  on
69       the allow_daemons_use_tcp_wrapper boolean. Disabled by default.
70
71       setsebool -P allow_daemons_use_tcp_wrapper 1
72
73
74
75       If  you  want to allow all daemons the ability to read/write terminals,
76       you  must  turn  on  the  allow_daemons_use_tty  boolean.  Disabled  by
77       default.
78
79       setsebool -P allow_daemons_use_tty 1
80
81
82
83       If you want to allow all domains to use other domains file descriptors,
84       you must turn on the allow_domain_fd_use boolean. Enabled by default.
85
86       setsebool -P allow_domain_fd_use 1
87
88
89
90       If you want to allow sysadm to debug or ptrace all processes, you  must
91       turn on the allow_ptrace boolean. Disabled by default.
92
93       setsebool -P allow_ptrace 1
94
95
96
97       If  you  want  to  allow  system  to run with NIS, you must turn on the
98       allow_ypbind boolean. Disabled by default.
99
100       setsebool -P allow_ypbind 1
101
102
103
104       If you want to enable cluster mode for daemons, you must  turn  on  the
105       daemons_enable_cluster_mode boolean. Disabled by default.
106
107       setsebool -P daemons_enable_cluster_mode 1
108
109
110
111       If  you  want to allow all domains to have the kernel load modules, you
112       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
113       default.
114
115       setsebool -P domain_kernel_load_modules 1
116
117
118
119       If you want to allow all domains to execute in fips_mode, you must turn
120       on the fips_mode boolean. Enabled by default.
121
122       setsebool -P fips_mode 1
123
124
125
126       If you want to enable reading of urandom for all domains, you must turn
127       on the global_ssp boolean. Disabled by default.
128
129       setsebool -P global_ssp 1
130
131
132
133       If you want to enable support for upstart as the init program, you must
134       turn on the init_upstart boolean. Enabled by default.
135
136       setsebool -P init_upstart 1
137
138
139
140       If you want to disable transitions to insmod,  you  must  turn  on  the
141       secure_mode_insmod boolean. Disabled by default.
142
143       setsebool -P secure_mode_insmod 1
144
145
146

MANAGED FILES

148       The  SELinux  process  type hotplug_t can manage files labeled with the
149       following file types.  The paths listed are the default paths for these
150       file types.  Note the processes UID still need to have DAC permissions.
151
152       cluster_conf_t
153
154            /etc/cluster(/.*)?
155
156       cluster_var_lib_t
157
158            /var/lib(64)?/openais(/.*)?
159            /var/lib(64)?/pengine(/.*)?
160            /var/lib(64)?/corosync(/.*)?
161            /usr/lib(64)?/heartbeat(/.*)?
162            /var/lib(64)?/heartbeat(/.*)?
163            /var/lib(64)?/pacemaker(/.*)?
164            /var/lib/cluster(/.*)?
165
166       cluster_var_run_t
167
168            /var/run/crm(/.*)?
169            /var/run/cman_.*
170            /var/run/rsctmp(/.*)?
171            /var/run/aisexec.*
172            /var/run/heartbeat(/.*)?
173            /var/run/cpglockd.pid
174            /var/run/corosync.pid
175            /var/run/rgmanager.pid
176            /var/run/cluster/rgmanager.sk
177
178       dhcp_etc_t
179
180            /etc/dhcpc.*
181            /etc/dhcp3?(/.*)?
182            /etc/dhcpd(6)?.conf
183            /etc/dhcp3?/dhclient.*
184            /etc/dhclient.*conf
185            /etc/dhcp/dhcpd(6)?.conf
186            /etc/dhclient-script
187
188       etc_runtime_t
189
190            /[^/]+
191            /etc/mtab.*
192            /etc/blkid(/.*)?
193            /etc/nologin.*
194            /etc/zipl.conf.*
195            /etc/smartd.conf.*
196            /etc/.fstab.hal..+
197            /etc/sysconfig/ip6?tables.save
198            /halt
199            /etc/motd
200            /fastboot
201            /poweroff
202            /etc/issue
203            /etc/cmtab
204            /forcefsck
205            /.autofsck
206            /.suspended
207            /fsckoptions
208            /etc/HOSTNAME
209            /.autorelabel
210            /etc/securetty
211            /etc/nohotplug
212            /etc/issue.net
213            /etc/killpower
214            /etc/ioctl.save
215            /etc/reader.conf
216            /etc/fstab.REVOKE
217            /etc/mtab.fuselock
218            /etc/network/ifstate
219            /etc/sysconfig/hwconf
220            /etc/ptal/ptal-printd-like
221            /etc/xorg.conf.d/00-system-setup-keyboard.conf
222
223       hotplug_var_run_t
224
225            /var/run/usb(/.*)?
226            /var/run/hotplug(/.*)?
227
228       initrc_tmp_t
229
230
231       mnt_t
232
233            /mnt(/[^/]*)
234            /mnt(/[^/]*)?
235            /rhev(/[^/]*)?
236            /media(/[^/]*)
237            /media(/[^/]*)?
238            /etc/rhgb(/.*)?
239            /media/.hal-.*
240            /net
241            /afs
242            /rhev
243            /misc
244
245       root_t
246
247            /
248            /initrd
249
250       sysfs_t
251
252            /sys(/.*)?
253
254       tmp_t
255
256            /tmp
257            /usr/tmp
258            /var/tmp
259            /tmp-inst
260            /var/tmp-inst
261            /var/tmp/vi.recover
262
263

FILE CONTEXTS

265       SELinux requires files to have an extended attribute to define the file
266       type.
267
268       You can see the context of a file using the -Z option to ls
269
270       Policy governs the access  confined  processes  have  to  these  files.
271       SELinux  hotplug  policy is very flexible allowing users to setup their
272       hotplug processes in as secure a method as possible.
273
274       STANDARD FILE CONTEXT
275
276       SELinux defines the file context types for the hotplug, if  you  wanted
277       to store files with these types in a diffent paths, you need to execute
278       the semanage command  to  sepecify  alternate  labeling  and  then  use
279       restorecon to put the labels on disk.
280
281       semanage   fcontext   -a   -t   hotplug_var_run_t  '/srv/myhotplug_con‐
282       tent(/.*)?'
283       restorecon -R -v /srv/myhotplug_content
284
285       Note: SELinux often uses regular expressions  to  specify  labels  that
286       match multiple files.
287
288       The following file types are defined for hotplug:
289
290
291
292       hotplug_etc_t
293
294       -  Set  files with the hotplug_etc_t type, if you want to store hotplug
295       files in the /etc directories.
296
297
298
299       hotplug_exec_t
300
301       - Set files with the hotplug_exec_t type, if you want to transition  an
302       executable to the hotplug_t domain.
303
304
305       Paths:
306            /etc/hotplug.d/.*,    /sbin/hotplug,   /sbin/netplugd,   /etc/hot‐
307            plug/firmware.agent
308
309
310       hotplug_var_run_t
311
312       - Set files with the hotplug_var_run_t type, if you want to  store  the
313       hotplug files under the /run or /var/run directory.
314
315
316       Paths:
317            /var/run/usb(/.*)?, /var/run/hotplug(/.*)?
318
319
320       Note:  File context can be temporarily modified with the chcon command.
321       If you want to permanently change the file context you need to use  the
322       semanage fcontext command.  This will modify the SELinux labeling data‐
323       base.  You will need to use restorecon to apply the labels.
324
325

COMMANDS

327       semanage fcontext can also be used to manipulate default  file  context
328       mappings.
329
330       semanage  permissive  can  also  be used to manipulate whether or not a
331       process type is permissive.
332
333       semanage module can also be used to enable/disable/install/remove  pol‐
334       icy modules.
335
336       semanage boolean can also be used to manipulate the booleans
337
338
339       system-config-selinux is a GUI tool available to customize SELinux pol‐
340       icy settings.
341
342

AUTHOR

344       This manual page was auto-generated using sepolicy manpage .
345
346

SEE ALSO

348       selinux(8), hotplug(8), semanage(8), restorecon(8), chcon(1)  ,  setse‐
349       bool(8)
350
351
352
353hotplug                            15-06-03                 hotplug_selinux(8)
Impressum