1type gnssd, domain; 2type gnssd_exec, exec_type, vendor_file_type, file_type; 3init_daemon_domain(gnssd); 4 5# Allow gnssd to access rild 6binder_call(gnssd, rild); 7binder_call(gnssd, hwservicemanager) 8binder_call(gnssd, servicemanager) 9allow gnssd hal_exynos_rild_hwservice:hwservice_manager find; 10allow gnssd hal_vendor_radio_external_service:service_manager find; 11allow gnssd radio_device:chr_file rw_file_perms; 12 13# Allow gnssd to acess gnss device 14allow gnssd vendor_gnss_device:chr_file rw_file_perms; 15allow gnssd vendor_gps_file:dir create_dir_perms; 16allow gnssd vendor_gps_file:file create_file_perms; 17allow gnssd vendor_gps_file:fifo_file create_file_perms; 18 19# Allow gnssd to obtain wakelock 20wakelock_use(gnssd) 21 22# Allow a base set of permissions required for network access. 23net_domain(gnssd); 24 25# Allow gnssd to get boot complete 26get_prop(gnssd, bootanim_system_prop) 27 28allow gnssd sysfs_soc:file r_file_perms; 29allow gnssd sysfs_gps:file rw_file_perms; 30 31# Allow gnssd to set GPS property 32set_prop(gnssd, vendor_gps_prop) 33 34# Read RIL property 35get_prop(gnssd, vendor_rild_prop) 36 37# Read modme state 38allow gnssd sysfs_modem_state:file r_file_perms; 39