1devicekit_disk_selinux(8)SELinux Policy devicekit_diskdevicekit_disk_selinux(8)
2
3
4
6 devicekit_disk_selinux - Security Enhanced Linux Policy for the
7 devicekit_disk processes
8
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
24 The devicekit_disk_t SELinux type can be entered via the file_type,
25 devicekit_disk_exec_t, unlabeled_t, proc_type, filesystem_type,
26 mtrr_device_t, sysctl_type file types.
27
28 The default entrypoint paths for the devicekit_disk_t domain are the
29 following:
30
31 all files on the system, /usr/libexec/udisks-daemon,
32 /usr/libexec/devkit-disks-daemon, /dev/cpu/mtrr
33
35 SELinux defines process types (domains) for each process running on the
36 system
37
38 You can see the context of a process using the -Z option to ps
39
40 Policy governs the access confined processes have to files. SELinux
41 devicekit_disk policy is very flexible allowing users to setup their
42 devicekit_disk processes in as secure a method as possible.
43
44 The following process types are defined for devicekit_disk:
45
46 devicekit_disk_t
47
48 Note: semanage permissive -a devicekit_disk_t can be used to make the
49 process type devicekit_disk_t permissive. SELinux does not deny access
50 to permissive process types, but the AVC (SELinux denials) messages are
51 still generated.
52
53
55 SELinux policy is customizable based on least access required.
56 devicekit_disk policy is extremely flexible and has several booleans
57 that allow you to manipulate the policy and run devicekit_disk with the
58 tightest access possible.
59
60
61
62 If you want to allow all daemons the ability to read/write terminals,
63 you must turn on the allow_daemons_use_tty boolean. Disabled by
64 default.
65
66 setsebool -P allow_daemons_use_tty 1
67
68
69
70 If you want to allow all domains to use other domains file descriptors,
71 you must turn on the allow_domain_fd_use boolean. Enabled by default.
72
73 setsebool -P allow_domain_fd_use 1
74
75
76
77 If you want to allow unconfined executables to make their heap memory
78 executable. Doing this is a really bad idea. Probably indicates a
79 badly coded executable, but could indicate an attack. This executable
80 should be reported in bugzilla, you must turn on the allow_execheap
81 boolean. Disabled by default.
82
83 setsebool -P allow_execheap 1
84
85
86
87 If you want to allow unconfined executables to map a memory region as
88 both executable and writable, this is dangerous and the executable
89 should be reported in bugzilla), you must turn on the allow_execmem
90 boolean. Enabled by default.
91
92 setsebool -P allow_execmem 1
93
94
95
96 If you want to allow all unconfined executables to use libraries
97 requiring text relocation that are not labeled textrel_shlib_t), you
98 must turn on the allow_execmod boolean. Enabled by default.
99
100 setsebool -P allow_execmod 1
101
102
103
104 If you want to allow unconfined executables to make their stack exe‐
105 cutable. This should never, ever be necessary. Probably indicates a
106 badly coded executable, but could indicate an attack. This executable
107 should be reported in bugzilla), you must turn on the allow_execstack
108 boolean. Enabled by default.
109
110 setsebool -P allow_execstack 1
111
112
113
114 If you want to allow confined applications to run with kerberos, you
115 must turn on the allow_kerberos boolean. Enabled by default.
116
117 setsebool -P allow_kerberos 1
118
119
120
121 If you want to allow sysadm to debug or ptrace all processes, you must
122 turn on the allow_ptrace boolean. Disabled by default.
123
124 setsebool -P allow_ptrace 1
125
126
127
128 If you want to allow system to run with NIS, you must turn on the
129 allow_ypbind boolean. Disabled by default.
130
131 setsebool -P allow_ypbind 1
132
133
134
135 If you want to allow all domains to have the kernel load modules, you
136 must turn on the domain_kernel_load_modules boolean. Disabled by
137 default.
138
139 setsebool -P domain_kernel_load_modules 1
140
141
142
143 If you want to allow all domains to execute in fips_mode, you must turn
144 on the fips_mode boolean. Enabled by default.
145
146 setsebool -P fips_mode 1
147
148
149
150 If you want to enable reading of urandom for all domains, you must turn
151 on the global_ssp boolean. Disabled by default.
152
153 setsebool -P global_ssp 1
154
155
156
157 If you want to allow certain domains to map low memory in the kernel,
158 you must turn on the mmap_low_allowed boolean. Disabled by default.
159
160 setsebool -P mmap_low_allowed 1
161
162
163
164 If you want to allow confined applications to use nscd shared memory,
165 you must turn on the nscd_use_shm boolean. Enabled by default.
166
167 setsebool -P nscd_use_shm 1
168
169
170
171 If you want to boolean to determine whether the system permits loading
172 policy, setting enforcing mode, and changing boolean values. Set this
173 to true and you have to reboot to set it back, you must turn on the
174 secure_mode_policyload boolean. Disabled by default.
175
176 setsebool -P secure_mode_policyload 1
177
178
179
180 If you want to allow virt to manage nfs files, you must turn on the
181 virt_use_nfs boolean. Disabled by default.
182
183 setsebool -P virt_use_nfs 1
184
185
186
187 If you want to allow virt to manage cifs files, you must turn on the
188 virt_use_samba boolean. Disabled by default.
189
190 setsebool -P virt_use_samba 1
191
192
193
194 If you want to support X userspace object manager, you must turn on the
195 xserver_object_manager boolean. Disabled by default.
196
197 setsebool -P xserver_object_manager 1
198
199
200
202 The SELinux process type devicekit_disk_t can manage files labeled with
203 the following file types. The paths listed are the default paths for
204 these file types. Note the processes UID still need to have DAC per‐
205 missions.
206
207 file_type
208
209 all files on the system
210
211
213 SELinux requires files to have an extended attribute to define the file
214 type.
215
216 You can see the context of a file using the -Z option to ls
217
218 Policy governs the access confined processes have to these files.
219 SELinux devicekit_disk policy is very flexible allowing users to setup
220 their devicekit_disk processes in as secure a method as possible.
221
222 The following file types are defined for devicekit_disk:
223
224
225
226 devicekit_disk_exec_t
227
228 - Set files with the devicekit_disk_exec_t type, if you want to transi‐
229 tion an executable to the devicekit_disk_t domain.
230
231
232 Paths:
233 /usr/libexec/udisks-daemon, /usr/libexec/devkit-disks-daemon
234
235
236 Note: File context can be temporarily modified with the chcon command.
237 If you want to permanently change the file context you need to use the
238 semanage fcontext command. This will modify the SELinux labeling data‐
239 base. You will need to use restorecon to apply the labels.
240
241
243 semanage fcontext can also be used to manipulate default file context
244 mappings.
245
246 semanage permissive can also be used to manipulate whether or not a
247 process type is permissive.
248
249 semanage module can also be used to enable/disable/install/remove pol‐
250 icy modules.
251
252 semanage boolean can also be used to manipulate the booleans
253
254
255 system-config-selinux is a GUI tool available to customize SELinux pol‐
256 icy settings.
257
258
260 This manual page was auto-generated using sepolicy manpage .
261
262
264 selinux(8), devicekit_disk(8), semanage(8), restorecon(8), chcon(1) ,
265 setsebool(8)
266
267
268
269devicekit_disk 15-06-03 devicekit_disk_selinux(8)