2020-01-18 09:29:32 +08:00
|
|
|
# ==============================================
|
|
|
|
# Policy File of /system/binstp_dump3 Executable File
|
|
|
|
|
|
|
|
|
|
|
|
# ==============================================
|
|
|
|
# Type Declaration
|
|
|
|
# ==============================================
|
|
|
|
|
2020-01-18 10:12:09 +08:00
|
|
|
type stp_dump3_exec, vendor_file_type, exec_type, file_type;
|
2020-01-18 10:05:30 +08:00
|
|
|
type stp_dump3, domain;
|
2020-01-18 09:29:32 +08:00
|
|
|
|
|
|
|
# ==============================================
|
|
|
|
# Android Policy Rule
|
|
|
|
# ==============================================
|
|
|
|
|
|
|
|
# ==============================================
|
|
|
|
# NSA Policy Rule
|
|
|
|
# ==============================================
|
|
|
|
|
|
|
|
# ==============================================
|
|
|
|
# MTK Policy Rule
|
|
|
|
# ==============================================
|
2020-01-18 10:12:09 +08:00
|
|
|
file_type_auto_trans(stp_dump3,vendor_data_file,stp_dump_data_file)
|
2020-01-18 10:02:25 +08:00
|
|
|
allow stp_dump3 self:capability { net_admin fowner chown fsetid };
|
2020-01-18 09:29:32 +08:00
|
|
|
allow stp_dump3 self:netlink_socket { read write getattr bind create setopt };
|
|
|
|
allow stp_dump3 self:netlink_generic_socket { read write getattr bind create setopt };
|
|
|
|
allow stp_dump3 wmtdetect_device:chr_file { read write ioctl open };
|
2020-01-18 10:16:29 +08:00
|
|
|
allow stp_dump3 stpwmt_device:chr_file rw_file_perms;
|
2020-01-18 09:29:32 +08:00
|
|
|
allow stp_dump3 tmpfs:lnk_file r_file_perms;
|
|
|
|
allow stp_dump3 tmpfs:lnk_file read;
|
|
|
|
allow stp_dump3 mnt_user_file:dir search;
|
|
|
|
allow stp_dump3 mnt_user_file:lnk_file read;
|
|
|
|
allow stp_dump3 storage_file:lnk_file read;
|
|
|
|
allow stp_dump3 sdcard_type:dir search;
|
|
|
|
allow stp_dump3 sdcard_type:dir {open read write create setattr getattr add_name remove_name search};
|
|
|
|
allow stp_dump3 sdcard_type:file { open read write create setattr getattr append unlink rename};
|
|
|
|
allow stp_dump3 sdcard_type:file create_file_perms;
|
2020-01-18 09:46:24 +08:00
|
|
|
allow stp_dump3 stp_dump_data_file:dir create_dir_perms;
|
|
|
|
allow stp_dump3 stp_dump_data_file:file create_file_perms;
|
2020-01-18 10:12:09 +08:00
|
|
|
allow stp_dump3 connsyslog_data_vendor_file:dir create_dir_perms;
|
|
|
|
allow stp_dump3 connsyslog_data_vendor_file:file create_file_perms;
|
|
|
|
allow stp_dump3 vendor_data_file:dir create_dir_perms;
|
2020-01-18 10:07:32 +08:00
|
|
|
get_prop(stp_dump3, coredump_prop)
|
2020-01-18 09:29:32 +08:00
|
|
|
init_daemon_domain(stp_dump3)
|