1# ==============================================
2# Policy File of /system/bin/gsm0710muxd Executable File
3
4# ==============================================
5# Type Declaration
6# ==============================================
7type gsm0710muxd, domain;
8type gsm0710muxd_exec , exec_type, file_type, vendor_file_type;
9
10# ==============================================
11# MTK Policy Rule
12# ==============================================
13init_daemon_domain(gsm0710muxd)
14
15# Capabilities assigned for gsm0710muxd
16allow gsm0710muxd self:capability { chown fowner setuid };
17
18# Property service
19# Set ctl.ril-daemon property
20#set_prop(gsm0710muxd, ctl_rildaemon_prop)
21set_prop(gsm0710muxd, ctl_ril-daemon-mtk_prop)
22set_prop(gsm0710muxd, ctl_fusion_ril_mtk_prop)
23set_prop(gsm0710muxd, gsm0710muxd_prop)
24set_prop(gsm0710muxd, vendor_radio_prop)
25# allow set muxreport control properties
26set_prop(gsm0710muxd, ril_mux_report_case_prop)
27
28# Allow read/write to devices/files
29allow gsm0710muxd gsm0710muxd_device:chr_file rw_file_perms;
30allow gsm0710muxd device:dir rw_dir_perms;
31allow gsm0710muxd device:lnk_file { create unlink };
32allow gsm0710muxd devpts:chr_file setattr;
33allow gsm0710muxd eemcs_device:chr_file rw_file_perms;
34
35# Allow read to sys/kernel/ccci/* files
36allow gsm0710muxd sysfs_ccci:dir search;
37allow gsm0710muxd sysfs_ccci:file r_file_perms;
38
39#Date: W1818
40#Purpose: allow rild access property of vendor_radio_prop
41set_prop(rild, vendor_radio_prop)
42