2017-10-13 23:54:32 +02:00
|
|
|
domain_auto_trans(vold, vold_prepare_subdirs_exec, vold_prepare_subdirs)
|
2017-10-19 23:41:37 +02:00
|
|
|
|
2020-02-11 15:43:05 +01:00
|
|
|
typeattribute vold_prepare_subdirs mlstrustedsubject;
|
|
|
|
|
2017-10-25 22:03:24 +02:00
|
|
|
allow vold_prepare_subdirs system_file:file execute_no_trans;
|
|
|
|
allow vold_prepare_subdirs shell_exec:file rx_file_perms;
|
|
|
|
allow vold_prepare_subdirs toolbox_exec:file rx_file_perms;
|
|
|
|
allow vold_prepare_subdirs devpts:chr_file rw_file_perms;
|
|
|
|
allow vold_prepare_subdirs vold:fd use;
|
|
|
|
allow vold_prepare_subdirs vold:fifo_file { read write };
|
|
|
|
allow vold_prepare_subdirs file_contexts_file:file r_file_perms;
|
2018-09-07 00:19:40 +02:00
|
|
|
allow vold_prepare_subdirs self:global_capability_class_set { chown dac_override dac_read_search fowner };
|
2017-10-25 22:03:24 +02:00
|
|
|
allow vold_prepare_subdirs self:process setfscreate;
|
2018-02-08 01:29:06 +01:00
|
|
|
allow vold_prepare_subdirs {
|
|
|
|
system_data_file
|
|
|
|
vendor_data_file
|
2018-04-16 23:50:38 +02:00
|
|
|
}:dir { open read write add_name remove_name rmdir relabelfrom };
|
2018-04-26 22:41:13 +02:00
|
|
|
allow vold_prepare_subdirs {
|
2021-07-12 15:21:48 +02:00
|
|
|
apex_data_file_type
|
2019-11-19 19:10:16 +01:00
|
|
|
apex_module_data_file
|
2019-12-02 19:29:48 +01:00
|
|
|
apex_rollback_data_file
|
2019-01-15 22:20:13 +01:00
|
|
|
backup_data_file
|
2021-10-06 07:13:20 +02:00
|
|
|
checkin_data_file
|
2018-11-16 00:28:07 +01:00
|
|
|
face_vendor_data_file
|
2018-11-19 19:42:11 +01:00
|
|
|
fingerprint_vendor_data_file
|
2018-11-16 00:28:07 +01:00
|
|
|
iris_vendor_data_file
|
2019-01-14 16:02:12 +01:00
|
|
|
rollback_data_file
|
2018-04-26 22:41:13 +02:00
|
|
|
storaged_data_file
|
2020-02-11 15:43:05 +01:00
|
|
|
system_data_file
|
2018-04-26 22:41:13 +02:00
|
|
|
vold_data_file
|
|
|
|
}:dir { create_dir_perms relabelto };
|
|
|
|
allow vold_prepare_subdirs {
|
2021-07-12 15:21:48 +02:00
|
|
|
apex_data_file_type
|
2020-10-16 16:29:55 +02:00
|
|
|
apex_art_staging_data_file
|
2019-11-19 19:10:16 +01:00
|
|
|
apex_module_data_file
|
2019-12-02 19:29:48 +01:00
|
|
|
apex_rollback_data_file
|
2019-01-15 22:20:13 +01:00
|
|
|
backup_data_file
|
2021-10-06 07:13:20 +02:00
|
|
|
checkin_data_file
|
2018-11-16 00:28:07 +01:00
|
|
|
face_vendor_data_file
|
2018-11-19 19:42:11 +01:00
|
|
|
fingerprint_vendor_data_file
|
2018-11-16 00:28:07 +01:00
|
|
|
iris_vendor_data_file
|
2019-01-14 16:02:12 +01:00
|
|
|
rollback_data_file
|
2018-04-26 22:41:13 +02:00
|
|
|
storaged_data_file
|
|
|
|
system_data_file
|
|
|
|
vold_data_file
|
|
|
|
}:file { getattr unlink };
|
2019-11-19 19:10:16 +01:00
|
|
|
allow vold_prepare_subdirs apex_mnt_dir:dir { open read };
|
2020-02-11 15:43:05 +01:00
|
|
|
allow vold_prepare_subdirs mnt_expand_file:dir search;
|
2020-12-04 15:07:52 +01:00
|
|
|
allow vold_prepare_subdirs user_profile_data_file:dir { search getattr relabelfrom };
|
|
|
|
allow vold_prepare_subdirs user_profile_root_file:dir { search getattr relabelfrom relabelto };
|
2020-02-11 15:43:05 +01:00
|
|
|
# /data/misc is unlabeled during early boot.
|
|
|
|
allow vold_prepare_subdirs unlabeled:dir search;
|
2019-05-09 19:43:59 +02:00
|
|
|
|
|
|
|
dontaudit vold_prepare_subdirs { proc unlabeled }:file r_file_perms;
|