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 r_dir_perms; 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 37# logging property 38get_prop(modem_svc_sit, vendor_logger_prop) 39 40userdebug_or_eng(` 41 allow modem_svc_sit radio_test_device:chr_file rw_file_perms; 42') 43 44# Write trace data to the Perfetto traced daemon. This requires connecting to 45# its producer socket and obtaining a (per-process) tmpfs fd. 46perfetto_producer(modem_svc_sit) 47 48# Allow modem_svc_sit to access modem image file/dir 49allow modem_svc_sit modem_img_file:dir r_dir_perms; 50allow modem_svc_sit modem_img_file:file r_file_perms; 51allow modem_svc_sit modem_img_file:lnk_file r_file_perms;