gps: add sepolicy to coredump node

Bug: 319766739
Test: build pass and verify pass
Change-Id: I7cf289865540533b9d65a2c2c21d1ea4e9f391a2
This commit is contained in:
Wayne Lin 2024-02-07 08:52:09 +08:00
parent ddcf9b45e9
commit a7430966ea
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)
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: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);
#Read GPS property