1# ============================================== 2# Policy File of /system/binstp_dump3 Executable File 3 4 5# ============================================== 6# Type Declaration 7# ============================================== 8 9type stp_dump3_exec, vendor_file_type, exec_type, file_type; 10type stp_dump3, domain; 11 12# ============================================== 13# Android Policy Rule 14# ============================================== 15 16# ============================================== 17# NSA Policy Rule 18# ============================================== 19 20# ============================================== 21# MTK Policy Rule 22# ============================================== 23allow stp_dump3 self:capability { net_admin fowner chown fsetid }; 24allow stp_dump3 self:netlink_socket { read write getattr bind create setopt }; 25allow stp_dump3 self:netlink_generic_socket { read write getattr bind create setopt }; 26allow stp_dump3 wmtdetect_device:chr_file { read write ioctl open }; 27allow stp_dump3 stpwmt_device:chr_file rw_file_perms; 28allow stp_dump3 tmpfs:lnk_file r_file_perms; 29allow stp_dump3 tmpfs:lnk_file read; 30allow stp_dump3 mnt_user_file:dir search; 31allow stp_dump3 mnt_user_file:lnk_file read; 32allow stp_dump3 storage_file:lnk_file read; 33allow stp_dump3 storage_file:dir search; 34allow stp_dump3 sdcard_type:dir search; 35allow stp_dump3 sdcard_type:dir {open read write create setattr getattr add_name remove_name search}; 36allow stp_dump3 sdcard_type:file { open read write create setattr getattr append unlink rename}; 37allow stp_dump3 sdcard_type:file create_file_perms; 38allow stp_dump3 stp_dump_data_file:dir create_dir_perms; 39allow stp_dump3 stp_dump_data_file:file create_file_perms; 40allow stp_dump3 stp_dump_data_file:sock_file { write create unlink setattr }; 41allow stp_dump3 connsyslog_data_vendor_file:dir create_dir_perms; 42allow stp_dump3 connsyslog_data_vendor_file:file create_file_perms; 43get_prop(stp_dump3, coredump_prop) 44init_daemon_domain(stp_dump3) 45