blob: 89b152803c5141d8a3f6f87c0ee198c35bf1e23e [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;
Joel Galensonfc870ce2018-04-11 12:13:25 -070010allow vold_prepare_subdirs self:global_capability_class_set { chown dac_override 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 };
16allow vold_prepare_subdirs system_data_file:file { getattr unlink };
Joel Galensonfc870ce2018-04-11 12:13:25 -070017allow vold_prepare_subdirs vold_data_file:dir { create open read write search getattr setattr remove_name rmdir relabelto };
Paul Crowley5850a2a2017-10-25 13:03:24 -070018allow vold_prepare_subdirs vold_data_file:file { getattr unlink };
Joel Galensonfc870ce2018-04-11 12:13:25 -070019allow vold_prepare_subdirs storaged_data_file:dir { create_dir_perms relabelto };
20allow vold_prepare_subdirs storaged_data_file:file getattr;