blob: e6df48df24947f624db23eb7efd0b8f828261981 [file] [log] [blame]
Paul Crowley5b962cf2017-10-13 14:54:32 -07001domain_auto_trans(vold, vold_prepare_subdirs_exec, vold_prepare_subdirs)
Jin Qianc0125332017-10-19 14:41:37 -07002
Paul Crowley5850a2a2017-10-25 13:03:24 -07003allow vold_prepare_subdirs system_file:file execute_no_trans;
4allow vold_prepare_subdirs shell_exec:file rx_file_perms;
5allow vold_prepare_subdirs toolbox_exec:file rx_file_perms;
6allow vold_prepare_subdirs devpts:chr_file rw_file_perms;
7allow vold_prepare_subdirs vold:fd use;
8allow vold_prepare_subdirs vold:fifo_file { read write };
9allow vold_prepare_subdirs file_contexts_file:file r_file_perms;
Benjamin Gordon342362a2018-09-06 16:19:40 -060010allow vold_prepare_subdirs self:global_capability_class_set { chown dac_override dac_read_search fowner };
Paul Crowley5850a2a2017-10-25 13:03:24 -070011allow vold_prepare_subdirs self:process setfscreate;
Jeff Vander Stoepd25ccab2018-02-07 16:29:06 -080012allow vold_prepare_subdirs {
13 system_data_file
14 vendor_data_file
Joel Galenson254a8722018-04-16 14:50:38 -070015}:dir { open read write add_name remove_name rmdir relabelfrom };
Paul Crowley80966392018-04-26 13:41:13 -070016allow vold_prepare_subdirs {
Annie Meng4c3d11c2019-01-15 21:20:13 +000017 backup_data_file
Kevin Chyn91c25802018-11-15 15:28:07 -080018 face_vendor_data_file
Nick Kralevich83f25e22018-11-19 18:42:11 +000019 fingerprint_vendor_data_file
Kevin Chyn91c25802018-11-15 15:28:07 -080020 iris_vendor_data_file
Narayan Kamath2ad229c2019-01-14 15:02:12 +000021 rollback_data_file
Paul Crowley80966392018-04-26 13:41:13 -070022 storaged_data_file
23 vold_data_file
24}:dir { create_dir_perms relabelto };
25allow vold_prepare_subdirs {
Annie Meng4c3d11c2019-01-15 21:20:13 +000026 backup_data_file
Kevin Chyn91c25802018-11-15 15:28:07 -080027 face_vendor_data_file
Nick Kralevich83f25e22018-11-19 18:42:11 +000028 fingerprint_vendor_data_file
Kevin Chyn91c25802018-11-15 15:28:07 -080029 iris_vendor_data_file
Narayan Kamath2ad229c2019-01-14 15:02:12 +000030 rollback_data_file
Paul Crowley80966392018-04-26 13:41:13 -070031 storaged_data_file
32 system_data_file
33 vold_data_file
34}:file { getattr unlink };