android_device_sony_kitakam.../sepolicy/ta_qmi.te
2020-02-09 02:31:04 +08:00

28 lines
746 B
Plaintext

type ta_qmi, domain, domain_deprecated;
type ta_qmi_exec, exec_type, file_type;
# Started by init
init_daemon_domain(ta_qmi)
# XXX: What exactly is this needed for? - Need to investigate
allow ta_qmi self:capability { dac_override net_raw };
allow ta_qmi self:socket create_socket_perms;
allow ta_qmi self:capability { setgid setuid };
# Connect to /dev/socket/tad
unix_socket_connect(ta_qmi, tad, tad)
# Connect to /dev/socket/property_service
unix_socket_connect(ta_qmi, property, init)
# Wakelocks!
wakelock_use(ta_qmi)
# Access to /dev/smem_log
allow ta_qmi smem_log_device:chr_file rw_file_perms;
allow ta_qmi socket_device:sock_file write;
allow ta_qmi ta_prop:property_service set;
allow ta_qmi ta_prop:file { read open getattr };