• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19set_prop(gsm0710muxd, vendor_mtk_ctl_ril-daemon-mtk_prop)
20set_prop(gsm0710muxd, vendor_mtk_ctl_fusion_ril_mtk_prop)
21set_prop(gsm0710muxd, vendor_mtk_gsm0710muxd_prop)
22set_prop(gsm0710muxd, vendor_mtk_radio_prop)
23
24# allow set muxreport control properties
25set_prop(gsm0710muxd, vendor_mtk_ril_mux_report_case_prop)
26
27# Allow read/write to devices/files
28allow gsm0710muxd gsm0710muxd_device:chr_file rw_file_perms;
29allow gsm0710muxd mtk_radio_device:dir rw_dir_perms;
30allow gsm0710muxd mtk_radio_device:lnk_file { create unlink };
31allow gsm0710muxd devpts:chr_file setattr;
32allow gsm0710muxd eemcs_device:chr_file rw_file_perms;
33
34# Allow read to sys/kernel/ccci/* files
35allow gsm0710muxd sysfs_ccci:dir search;
36allow gsm0710muxd sysfs_ccci:file r_file_perms;
37
38#Date: W1818
39#Purpose: allow rild access property of vendor_mtk_radio_prop
40set_prop(rild, vendor_mtk_radio_prop)
41