Alex Klyubin | f5446eb | 2017-03-23 14:27:32 -0700 | [diff] [blame] | 1 | typeattribute profman coredomain; |
Jiakai Zhang | c871c1c | 2022-07-19 21:29:31 +0100 | [diff] [blame^] | 2 | |
| 3 | # Allow profman to read APKs and profile files next to them by FDs passed from |
| 4 | # other programs. In addition, allow profman to acquire flocks on those files. |
| 5 | allow profman { |
| 6 | system_file |
| 7 | apk_data_file |
| 8 | vendor_app_file |
| 9 | }:file { getattr read map lock }; |
| 10 | |
| 11 | # Allow profman to use file descriptors passed from privileged programs. |
| 12 | allow profman { artd installd }:fd use; |