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) 8allow gnssd hal_exynos_rild_hwservice:hwservice_manager find; 9allow gnssd radio_device:chr_file rw_file_perms; 10 11# Allow gnssd to acess gnss device 12allow gnssd vendor_gnss_device:chr_file rw_file_perms; 13allow gnssd vendor_gps_file:dir create_dir_perms; 14allow gnssd vendor_gps_file:file create_file_perms; 15allow gnssd vendor_gps_file:fifo_file create_file_perms; 16 17# Allow gnssd to obtain wakelock 18wakelock_use(gnssd) 19 20# Allow a base set of permissions required for network access. 21net_domain(gnssd); 22 23# Allow gnssd to get boot complete 24get_prop(gnssd, bootanim_system_prop) 25 26allow gnssd sysfs_soc:file r_file_perms; 27allow gnssd sysfs_gps:file rw_file_perms; 28 29# Allow gnssd to set GPS property 30set_prop(gnssd, vendor_gps_prop) 31 32# Read RIL property 33get_prop(gnssd, vendor_rild_prop) 34 35# Read modme state 36allow gnssd sysfs_modem_state:file r_file_perms; 37