Paul Crowley | 5b962cf | 2017-10-13 14:54:32 -0700 | [diff] [blame] | 1 | domain_auto_trans(vold, vold_prepare_subdirs_exec, vold_prepare_subdirs) |
Jin Qian | c012533 | 2017-10-19 14:41:37 -0700 | [diff] [blame] | 2 | |
Paul Crowley | 5850a2a | 2017-10-25 13:03:24 -0700 | [diff] [blame] | 3 | allow vold_prepare_subdirs system_file:file execute_no_trans; |
| 4 | allow vold_prepare_subdirs shell_exec:file rx_file_perms; |
| 5 | allow vold_prepare_subdirs toolbox_exec:file rx_file_perms; |
| 6 | allow vold_prepare_subdirs devpts:chr_file rw_file_perms; |
| 7 | allow vold_prepare_subdirs vold:fd use; |
| 8 | allow vold_prepare_subdirs vold:fifo_file { read write }; |
| 9 | allow vold_prepare_subdirs file_contexts_file:file r_file_perms; |
Jeff Vander Stoep | bdbdb0f | 2018-01-10 08:37:42 -0800 | [diff] [blame] | 10 | allow vold_prepare_subdirs self:global_capability_class_set { chown dac_override }; |
Paul Crowley | 5850a2a | 2017-10-25 13:03:24 -0700 | [diff] [blame] | 11 | allow vold_prepare_subdirs self:process setfscreate; |
Jeff Vander Stoep | d25ccab | 2018-02-07 16:29:06 -0800 | [diff] [blame^] | 12 | allow vold_prepare_subdirs { |
| 13 | system_data_file |
| 14 | vendor_data_file |
| 15 | }:dir { open read write add_name remove_name }; |
Paul Crowley | 5850a2a | 2017-10-25 13:03:24 -0700 | [diff] [blame] | 16 | allow vold_prepare_subdirs vold_data_file:dir { create open read write search getattr setattr remove_name rmdir }; |
| 17 | allow vold_prepare_subdirs vold_data_file:file { getattr unlink }; |
Jin Qian | c012533 | 2017-10-19 14:41:37 -0700 | [diff] [blame] | 18 | allow vold_prepare_subdirs storaged_data_file:dir create_dir_perms; |