12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- type heapprofd_exec, exec_type, file_type, system_file_type;
- type heapprofd_tmpfs, file_type;
- init_daemon_domain(heapprofd)
- tmpfs_domain(heapprofd)
- typeattribute heapprofd_tmpfs mlstrustedobject;
- set_prop(heapprofd, heapprofd_prop);
- typeattribute heapprofd mlstrustedsubject;
- allow heapprofd self:capability kill;
- dontaudit heapprofd domain:dir { search open };
- allow heapprofd traced:fd use;
- allow heapprofd traced_tmpfs:file { read write getattr map };
- unix_socket_connect(heapprofd, traced_producer, traced)
- userdebug_or_eng(`
- r_dir_file(heapprofd, nativetest_data_file)
- r_dir_file(heapprofd, system_file_type)
- r_dir_file(heapprofd, apk_data_file)
- r_dir_file(heapprofd, dalvikcache_data_file)
- r_dir_file(heapprofd, vendor_file_type)
- allow heapprofd self:global_capability_class_set dac_read_search;
- ')
- dontaudit heapprofd self:global_capability_class_set { dac_read_search dac_override };
- never_profile_heap(`{
- bpfloader
- init
- kernel
- keystore
- llkd
- logd
- ueventd
- vendor_init
- vold
- }')
- full_treble_only(`
- neverallow heapprofd vendor_file:file { no_w_file_perms no_x_file_perms };
- ')
|