Merge "gps: add sepolicy to coredump node" into main

This commit is contained in:
Treehugger Robot 2024-02-13 04:19:05 +00:00 committed by Android (Google) Code Review
commit c290ed9612
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# gps coredump node
genfscon sysfs /devices/platform/gnssif/coredump u:object_r:sysfs_gps:s0

View File

@ -24,3 +24,4 @@ net_domain(gnssd);
get_prop(gnssd, bootanim_system_prop) get_prop(gnssd, bootanim_system_prop)
allow gnssd sysfs_soc:file r_file_perms; allow gnssd sysfs_soc:file r_file_perms;
allow gnssd sysfs_gps:file rw_file_perms;

View File

@ -3,6 +3,7 @@ allow hal_gnss_default gnssd:unix_stream_socket connectto;
allow hal_gnss_default vendor_gps_file:dir create_dir_perms; allow hal_gnss_default vendor_gps_file:dir create_dir_perms;
allow hal_gnss_default vendor_gps_file:file create_file_perms; allow hal_gnss_default vendor_gps_file:file create_file_perms;
allow hal_gnss_default vendor_gps_file:fifo_file create_file_perms; allow hal_gnss_default vendor_gps_file:fifo_file create_file_perms;
allow hal_gnss_default sysfs_gps:file rw_file_perms;
binder_call(hal_gnss_default, gnssd); binder_call(hal_gnss_default, gnssd);
#Read GPS property #Read GPS property