Some rules is no need any more, need to remove it. MTK-Commit-Id: 49685f1299d990a7195a2d54b955517d8f2cc699 Change-Id: I4a590ad781589cf94989ce72c88751ac10b82eae CR-Id: ALPS03982747 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
# ==============================================
|
|
# Policy File of /system/binstp_dump3 Executable File
|
|
|
|
|
|
# ==============================================
|
|
# Type Declaration
|
|
# ==============================================
|
|
|
|
type stp_dump3_exec , exec_type, file_type, vendor_file_type;
|
|
type stp_dump3 ,domain;
|
|
|
|
# ==============================================
|
|
# Android Policy Rule
|
|
# ==============================================
|
|
|
|
# ==============================================
|
|
# NSA Policy Rule
|
|
# ==============================================
|
|
|
|
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
allow stp_dump3 self:capability { net_admin fowner chown fsetid };
|
|
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 };
|
|
allow stp_dump3 stpwmt_device:chr_file { read write ioctl open };
|
|
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;
|
|
allow stp_dump3 stp_dump_data_file:dir create_dir_perms;
|
|
allow stp_dump3 stp_dump_data_file:file create_file_perms;
|
|
init_daemon_domain(stp_dump3)
|