Lines Matching full:vold
2 type vold, domain;
6 allow vold cache_file:dir r_dir_perms;
7 allow vold cache_file:file { getattr read };
8 allow vold cache_file:lnk_file r_file_perms;
10 r_dir_file(vold, { sysfs_type -sysfs_batteryinfo })
12 allow vold {
22 r_dir_file(vold, rootfs)
23 r_dir_file(vold, metadata_file)
24 allow vold {
34 allow vold file_contexts_file:file r_file_perms;
37 allow vold self:process setexec;
40 allow vold e2fs_exec:file rx_file_perms;
44 allowxperm vold { fs_type file_type }:dir ioctl FITRIM;
48 allowxperm vold data_file_type:dir ioctl {
55 # Only vold and init should ever set file-based encryption policies.
58 -vold
63 # Only vold should ever add/remove file-based encryption keys.
66 -vold
71 allowxperm vold vold_data_file:file ioctl {
75 typeattribute vold mlstrustedsubject;
76 allow vold self:process setfscreate;
77 allow vold system_file:file x_file_perms;
78 not_full_treble(`allow vold vendor_file:file x_file_perms;')
79 allow vold block_device:dir create_dir_perms;
80 allow vold device:dir write;
81 allow vold devpts:chr_file rw_file_perms;
82 allow vold rootfs:dir mounton;
83 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
84 allow vold sdcard_type:filesystem { mount remount unmount }; # TODO: deprecated in M
85 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
86 allow vold sdcard_type:file create_file_perms; # TODO: deprecated in M
89 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
90 allow vold { mnt_media_rw_file storage_file sdcard_type }:file create_file_perms;
93 allow vold media_rw_data_file:dir create_dir_perms;
94 allow vold media_rw_data_file:file create_file_perms;
96 allow vold media_rw_data_file:dir mounton;
100 allowxperm vold media_rw_data_file:{ dir file } ioctl {
108 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
111 allow vold mnt_user_file:dir { create_dir_perms mounton };
112 allow vold mnt_user_file:lnk_file create_file_perms;
113 allow vold mnt_user_file:file create_file_perms;
116 allow vold mnt_pass_through_file:dir { create_dir_perms mounton };
117 allow vold mnt_pass_through_file:lnk_file create_file_perms;
120 allow vold mnt_expand_file:dir { create_dir_perms mounton };
121 allow vold apk_data_file:dir { create getattr setattr };
122 allow vold shell_data_file:dir { create getattr setattr };
125 allow vold apk_data_file:dir { mounton rw_dir_perms };
127 allow vold apk_data_file:file rw_file_perms;
129 allow vold apk_tmp_file:dir { mounton r_dir_perms };
131 allow vold incremental_control_file:file { r_file_perms relabelto };
133 allow vold tmpfs:filesystem { mount unmount };
134 allow vold tmpfs:dir create_dir_perms;
135 allow vold tmpfs:dir mounton;
136 allow vold self:global_capability_class_set { net_admin dac_override dac_read_search mknod sys_admi…
137 allow vold self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
138 allow vold loop_control_device:chr_file rw_file_perms;
139 allow vold loop_device:blk_file { create setattr unlink rw_file_perms };
140 allowxperm vold loop_device:blk_file ioctl {
147 allow vold vold_device:blk_file { create setattr unlink rw_file_perms };
148 allowxperm vold vold_device:blk_file ioctl { BLKDISCARD BLKGETSIZE };
149 allow vold dm_device:chr_file rw_file_perms;
150 allow vold dm_device:blk_file rw_file_perms;
151 allowxperm vold dm_device:blk_file ioctl BLKSECDISCARD;
152 # For vold Process::killProcessesWithOpenFiles function.
153 allow vold domain:dir r_dir_perms;
154 allow vold domain:{ file lnk_file } r_file_perms;
155 allow vold domain:process { signal sigkill };
156 allow vold self:global_capability_class_set { sys_ptrace kill };
158 allow vold kmsg_device:chr_file rw_file_perms;
161 allow vold fsck_exec:file { r_file_perms execute };
164 allow vold fscklogs:dir rw_dir_perms;
165 allow vold fscklogs:file create_file_perms;
172 allow vold labeledfs:filesystem { mount unmount remount };
176 allow vold efs_file:file rw_file_perms;
179 allow vold {
183 allow vold system_data_file:lnk_file getattr;
185 # Vold create users in /data/vendor_{ce,de}/[0-9]+
186 allow vold vendor_data_file:dir create_dir_perms;
189 allow vold system_data_file:file read;
192 allow vold kernel:process setsched;
195 allow vold asec_image_file:file create_file_perms;
196 allow vold asec_image_file:dir rw_dir_perms;
197 allow vold asec_apk_file:dir { create_dir_perms mounton relabelfrom relabelto };
198 allow vold asec_public_file:dir { relabelto setattr };
199 allow vold asec_apk_file:file { r_file_perms setattr relabelfrom relabelto };
200 allow vold asec_public_file:file { relabelto setattr };
202 allow vold unlabeled:dir { r_dir_perms setattr relabelfrom };
203 allow vold unlabeled:file { r_file_perms setattr relabelfrom };
206 allow vold fusectlfs:file rw_file_perms;
207 allow vold fusectlfs:dir rw_dir_perms;
210 wakelock_use(vold)
212 # Allow vold to publish a binder service and make binder calls.
213 binder_use(vold)
214 add_service(vold, vold_service)
216 # Allow vold to call into the system server so it can check permissions.
217 binder_call(vold, system_server)
218 allow vold permission_service:service_manager find;
221 binder_call(vold, healthd)
224 hal_client_domain(vold, hal_keymaster)
227 hal_client_domain(vold, hal_health_storage)
230 full_treble_only(`hal_client_domain(vold, hal_bootctl)')
233 allow vold userdata_block_device:blk_file rw_file_perms;
234 allowxperm vold userdata_block_device:blk_file ioctl BLKSECDISCARD;
237 allow vold metadata_block_device:blk_file rw_file_perms;
239 # Allow vold to manipulate /data/unencrypted
240 allow vold unencrypted_data_file:{ file } create_file_perms;
241 allow vold unencrypted_data_file:dir create_dir_perms;
244 allow vold proc_drop_caches:file w_file_perms;
246 # Give vold a place where only vold can store files; everyone else is off limits
247 allow vold vold_data_file:dir create_dir_perms;
248 allow vold vold_data_file:file create_file_perms;
251 allow vold vold_metadata_file:dir create_dir_perms;
252 allow vold vold_metadata_file:file create_file_perms;
255 allow vold init:key { write search setattr };
256 allow vold vold:key { write search setattr };
258 # vold temporarily changes its priority when running benchmarks
259 allow vold self:global_capability_class_set sys_nice;
261 # vold needs to chroot into app namespaces to remount when runtime permissions change
262 allow vold self:global_capability_class_set sys_chroot;
263 allow vold storage_file:dir mounton;
266 allow vold fuse_device:chr_file rw_file_perms;
267 allow vold fuse:filesystem { relabelfrom };
268 allow vold app_fusefs:filesystem { relabelfrom relabelto };
269 allow vold app_fusefs:filesystem { mount unmount };
270 allow vold app_fuse_file:dir rw_dir_perms;
271 allow vold app_fuse_file:file { read write open getattr append };
274 allow vold toolbox_exec:file rx_file_perms;
277 allow vold user_profile_data_file:dir create_dir_perms;
280 allow vold misc_block_device:blk_file w_file_perms;
282 # vold might need to search or mount /mnt/vendor/*
283 allow vold mnt_vendor_file:dir search;
285 dontaudit vold self:global_capability_class_set sys_resource;
287 # vold needs to know whether we're running a GSI.
288 allow vold gsi_metadata_file:dir r_dir_perms;
289 allow vold gsi_metadata_file:file r_file_perms;
293 -vold
300 -vold
307 -vold
313 -vold
320 -vold
328 -vold
332 neverallow { domain -vold -init } restorecon_prop:property_service set;
338 -vold
343 neverallow vold {
357 neverallow vold fsck_exec:file execute_no_trans;
358 neverallow { domain -init } vold:process { transition dyntransition };
359 neverallow vold *:process ptrace;
360 neverallow vold *:rawip_socket *;