1# ============================================== 2# Policy File of /system/binstp_dump3 Executable File 3 4 5# ============================================== 6# Type Declaration 7# ============================================== 8 9type bt_dump_exec, vendor_file_type, exec_type, file_type; 10type bt_dump, domain; 11 12# ============================================== 13# Android Policy Rule 14# ============================================== 15 16# ============================================== 17# NSA Policy Rule 18# ============================================== 19 20# ============================================== 21# MTK Policy Rule 22# ============================================== 23allow bt_dump self:capability { net_admin }; 24allow bt_dump self:netlink_socket { read write getattr bind create setopt }; 25allow bt_dump self:netlink_generic_socket { read write getattr bind create setopt }; 26allow bt_dump conninfra_device:chr_file rw_file_perms; 27allow bt_dump stpwmt_device:chr_file rw_file_perms; 28allow bt_dump tmpfs:lnk_file r_file_perms; 29allow bt_dump mnt_user_file:dir search; 30allow bt_dump mnt_user_file:lnk_file read; 31allow bt_dump storage_file:lnk_file read; 32allow bt_dump stp_dump_data_file:dir create_dir_perms; 33allow bt_dump stp_dump_data_file:file create_file_perms; 34allow bt_dump connsyslog_data_vendor_file:dir create_dir_perms; 35allow bt_dump connsyslog_data_vendor_file:file create_file_perms; 36get_prop(bt_dump, vendor_mtk_coredump_prop) 37init_daemon_domain(bt_dump) 38