Bug: 318310869 Bug: 315915958 Test: build pass, GPS works and no GPS avc denied error Change-Id: Ib2aa778a0d0e8a51f4d6733b6a55ccf588a05079
27 lines
811 B
Plaintext
27 lines
811 B
Plaintext
type gnssd, domain;
|
|
type gnssd_exec, exec_type, vendor_file_type, file_type;
|
|
init_daemon_domain(gnssd);
|
|
|
|
# Allow gnssd to access rild
|
|
binder_call(gnssd, rild);
|
|
binder_call(gnssd, hwservicemanager)
|
|
allow gnssd hal_exynos_rild_hwservice:hwservice_manager find;
|
|
allow gnssd radio_device:chr_file rw_file_perms;
|
|
|
|
# Allow gnssd to acess gnss device
|
|
allow gnssd vendor_gnss_device:chr_file rw_file_perms;
|
|
allow gnssd vendor_gps_file:dir create_dir_perms;
|
|
allow gnssd vendor_gps_file:file create_file_perms;
|
|
allow gnssd vendor_gps_file:fifo_file create_file_perms;
|
|
|
|
# Allow gnssd to obtain wakelock
|
|
wakelock_use(gnssd)
|
|
|
|
# Allow a base set of permissions required for network access.
|
|
net_domain(gnssd);
|
|
|
|
# Allow gnssd to get boot complete
|
|
get_prop(gnssd, bootanim_system_prop)
|
|
|
|
allow gnssd sysfs_soc:file r_file_perms;
|