• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type modem_svc_sit, domain;
2type modem_svc_sit_exec, vendor_file_type, exec_type, file_type;
3init_daemon_domain(modem_svc_sit)
4
5hwbinder_use(modem_svc_sit)
6binder_call(modem_svc_sit, rild)
7
8# Grant sysfs_modem access
9allow modem_svc_sit sysfs_modem:file rw_file_perms;
10
11# Grant radio device access
12allow modem_svc_sit radio_device:chr_file rw_file_perms;
13
14# Grant vendor radio and modem file/dir creation permission
15allow modem_svc_sit radio_vendor_data_file:dir create_dir_perms;
16allow modem_svc_sit radio_vendor_data_file:file create_file_perms;
17allow modem_svc_sit modem_stat_data_file:dir create_dir_perms;
18allow modem_svc_sit modem_stat_data_file:file create_file_perms;
19
20allow modem_svc_sit vendor_fw_file:dir search;
21allow modem_svc_sit vendor_fw_file:file r_file_perms;
22
23allow modem_svc_sit mnt_vendor_file:dir search;
24allow modem_svc_sit modem_userdata_file:dir create_dir_perms;
25allow modem_svc_sit modem_userdata_file:file create_file_perms;
26
27# RIL property
28get_prop(modem_svc_sit, vendor_rild_prop)
29
30# Modem property
31set_prop(modem_svc_sit, vendor_modem_prop)
32
33# hwservice permission
34allow modem_svc_sit hal_exynos_rild_hwservice:hwservice_manager find;
35get_prop(modem_svc_sit, hwservicemanager_prop)
36