1devicekit_disk_selinux(8)SELinux Policy devicekit_diskdevicekit_disk_selinux(8)
2
3
4

NAME

6       devicekit_disk_selinux   -  Security  Enhanced  Linux  Policy  for  the
7       devicekit_disk processes
8

DESCRIPTION

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

ENTRYPOINTS

24       The   devicekit_disk_t   SELinux   type   can   be   entered   via  the
25       devicekit_disk_exec_t file type.
26
27       The default entrypoint paths for the devicekit_disk_t  domain  are  the
28       following:
29
30       /lib/udisks2/udisksd,                         /lib/udev/udisks-part-id,
31       /usr/lib/udisks2/udisksd,                   /usr/libexec/udisks-daemon,
32       /usr/lib/udev/udisks-part-id,             /usr/libexec/udisks2/udisksd,
33       /usr/lib/udisks/udisks-daemon, /usr/libexec/devkit-disks-daemon
34

PROCESS TYPES

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

BOOLEANS

56       SELinux  policy  is  customizable  based  on  least  access   required.
57       devicekit_disk  policy  is  extremely flexible and has several booleans
58       that allow you to manipulate the policy and run devicekit_disk with the
59       tightest access possible.
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 daemons to write corefiles to /, you must turn
72       on the daemons_dump_core boolean. Disabled by default.
73
74       setsebool -P daemons_dump_core 1
75
76
77
78       If you want to enable cluster mode for daemons, you must  turn  on  the
79       daemons_enable_cluster_mode boolean. Enabled by default.
80
81       setsebool -P daemons_enable_cluster_mode 1
82
83
84
85       If  you want to allow all daemons to use tcp wrappers, you must turn on
86       the daemons_use_tcp_wrapper boolean. Disabled by default.
87
88       setsebool -P daemons_use_tcp_wrapper 1
89
90
91
92       If you want to allow all daemons the ability to  read/write  terminals,
93       you must turn on the daemons_use_tty boolean. Disabled by default.
94
95       setsebool -P daemons_use_tty 1
96
97
98
99       If you want to deny user domains applications to map a memory region as
100       both executable and writable, this  is  dangerous  and  the  executable
101       should be reported in bugzilla, you must turn on the deny_execmem bool‐
102       ean. Enabled by default.
103
104       setsebool -P deny_execmem 1
105
106
107
108       If you want to deny any process from ptracing or  debugging  any  other
109       processes,  you  must  turn  on  the  deny_ptrace  boolean.  Enabled by
110       default.
111
112       setsebool -P deny_ptrace 1
113
114
115
116       If you want to allow any process  to  mmap  any  file  on  system  with
117       attribute  file_type,  you must turn on the domain_can_mmap_files bool‐
118       ean. Enabled by default.
119
120       setsebool -P domain_can_mmap_files 1
121
122
123
124       If you want to allow all domains write to kmsg_device, while kernel  is
125       executed  with  systemd.log_target=kmsg parameter, you must turn on the
126       domain_can_write_kmsg boolean. Disabled by default.
127
128       setsebool -P domain_can_write_kmsg 1
129
130
131
132       If you want to allow all domains to use other domains file descriptors,
133       you must turn on the domain_fd_use boolean. Enabled by default.
134
135       setsebool -P domain_fd_use 1
136
137
138
139       If  you  want to allow all domains to have the kernel load modules, you
140       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
141       default.
142
143       setsebool -P domain_kernel_load_modules 1
144
145
146
147       If you want to allow all domains to execute in fips_mode, you must turn
148       on the fips_mode boolean. Enabled by default.
149
150       setsebool -P fips_mode 1
151
152
153
154       If you want to enable reading of urandom for all domains, you must turn
155       on the global_ssp boolean. Disabled by default.
156
157       setsebool -P global_ssp 1
158
159
160
161       If  you  want  to allow confined applications to run with kerberos, you
162       must turn on the kerberos_enabled boolean. Enabled by default.
163
164       setsebool -P kerberos_enabled 1
165
166
167
168       If you want to control the ability to mmap a low area  of  the  address
169       space,  as  configured  by /proc/sys/vm/mmap_min_addr, you must turn on
170       the mmap_low_allowed boolean. Disabled by default.
171
172       setsebool -P mmap_low_allowed 1
173
174
175
176       If you want to allow system to run with  NIS,  you  must  turn  on  the
177       nis_enabled boolean. Disabled by default.
178
179       setsebool -P nis_enabled 1
180
181
182
183       If  you  want to allow confined applications to use nscd shared memory,
184       you must turn on the nscd_use_shm boolean. Disabled by default.
185
186       setsebool -P nscd_use_shm 1
187
188
189
190       If you want to disable kernel module loading,  you  must  turn  on  the
191       secure_mode_insmod boolean. Enabled by default.
192
193       setsebool -P secure_mode_insmod 1
194
195
196
197       If  you want to boolean to determine whether the system permits loading
198       policy, setting enforcing mode, and changing boolean values.  Set  this
199       to  true  and  you  have to reboot to set it back, you must turn on the
200       secure_mode_policyload boolean. Enabled by default.
201
202       setsebool -P secure_mode_policyload 1
203
204
205
206       If you want to allow unconfined executables to make their  heap  memory
207       executable.   Doing  this  is  a  really bad idea. Probably indicates a
208       badly coded executable, but could indicate an attack.  This  executable
209       should   be   reported  in  bugzilla,  you  must  turn  on  the  selin‐
210       uxuser_execheap boolean. Disabled by default.
211
212       setsebool -P selinuxuser_execheap 1
213
214
215
216       If you want to  allow  all  unconfined  executables  to  use  libraries
217       requiring  text  relocation  that  are not labeled textrel_shlib_t, you
218       must turn on the selinuxuser_execmod boolean. Enabled by default.
219
220       setsebool -P selinuxuser_execmod 1
221
222
223
224       If you want to allow unconfined executables to make  their  stack  exe‐
225       cutable.   This  should  never, ever be necessary. Probably indicates a
226       badly coded executable, but could indicate an attack.  This  executable
227       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
228       stack boolean. Enabled by default.
229
230       setsebool -P selinuxuser_execstack 1
231
232
233
234       If you want to support X userspace object manager, you must turn on the
235       xserver_object_manager boolean. Enabled by default.
236
237       setsebool -P xserver_object_manager 1
238
239
240

MANAGED FILES

242       The SELinux process type devicekit_disk_t can manage files labeled with
243       the following file types.  The paths listed are the default  paths  for
244       these  file  types.  Note the processes UID still need to have DAC per‐
245       missions.
246
247       file_type
248
249            all files on the system
250
251

FILE CONTEXTS

253       SELinux requires files to have an extended attribute to define the file
254       type.
255
256       You can see the context of a file using the -Z option to ls
257
258       Policy  governs  the  access  confined  processes  have to these files.
259       SELinux devicekit_disk policy is very flexible allowing users to  setup
260       their devicekit_disk processes in as secure a method as possible.
261
262       The following file types are defined for devicekit_disk:
263
264
265
266       devicekit_disk_exec_t
267
268       - Set files with the devicekit_disk_exec_t type, if you want to transi‐
269       tion an executable to the devicekit_disk_t domain.
270
271
272       Paths:
273            /lib/udisks2/udisksd,                    /lib/udev/udisks-part-id,
274            /usr/lib/udisks2/udisksd,              /usr/libexec/udisks-daemon,
275            /usr/lib/udev/udisks-part-id,        /usr/libexec/udisks2/udisksd,
276            /usr/lib/udisks/udisks-daemon, /usr/libexec/devkit-disks-daemon
277
278
279       Note:  File context can be temporarily modified with the chcon command.
280       If you want to permanently change the file context you need to use  the
281       semanage fcontext command.  This will modify the SELinux labeling data‐
282       base.  You will need to use restorecon to apply the labels.
283
284

COMMANDS

286       semanage fcontext can also be used to manipulate default  file  context
287       mappings.
288
289       semanage  permissive  can  also  be used to manipulate whether or not a
290       process type is permissive.
291
292       semanage module can also be used to enable/disable/install/remove  pol‐
293       icy modules.
294
295       semanage boolean can also be used to manipulate the booleans
296
297
298       system-config-selinux is a GUI tool available to customize SELinux pol‐
299       icy settings.
300
301

AUTHOR

303       This manual page was auto-generated using sepolicy manpage .
304
305

SEE ALSO

307       selinux(8), devicekit_disk(8),  semanage(8),  restorecon(8),  chcon(1),
308       sepolicy(8) , setsebool(8)
309
310
311
312devicekit_disk                     19-04-25          devicekit_disk_selinux(8)
Impressum