Victor Hsieh | f97cc1f | 2021-11-30 14:43:47 -0800 | [diff] [blame^] | 1 | # odrefresh |
| 2 | type odrefresh, domain, coredomain; |
| 3 | type odrefresh_exec, system_file_type, exec_type, file_type; |
| 4 | |
| 5 | # Run dex2oat in its own sandbox. |
| 6 | domain_auto_trans(odrefresh, dex2oat_exec, dex2oat) |
| 7 | |
| 8 | # Allow odrefresh to kill dex2oat if compilation times out. |
| 9 | allow odrefresh dex2oat:process sigkill; |
| 10 | |
| 11 | # Allow odrefresh to read/write/lookup files/directories on authfs. |
| 12 | allow odrefresh authfs_fuse:file create_file_perms; |
| 13 | allow odrefresh authfs_fuse:dir create_dir_perms; |
| 14 | |
| 15 | # Allow odrefresh to check the parent directory exists. |
| 16 | allow odrefresh authfs_data_file:dir { search getattr }; |
| 17 | |
| 18 | # Allow odrefresh to read /apex/apex-info-list.xml to gather information of |
| 19 | # the current APEXes. |
| 20 | allow odrefresh apex_info_file:file r_file_perms; |
| 21 | |
| 22 | # Do not audit unused resources from parent processes. |
| 23 | dontaudit odrefresh compos:fd use; |