gps: add sepolicy to coredump node

Bug: 303343788
Test: b/303343788 verified the SIGABRT/SIGSEGV signal
Change-Id: I5587f632d4cbd2d9210e37c08a19981fb9967a80
This commit is contained in:
Cheng Chang 2023-10-05 02:46:42 +00:00
parent befa27b85e
commit 1ee114f4d7
3 changed files with 5 additions and 1 deletions

3
vendor/file.te vendored
View file

@ -1 +1,2 @@
type sysfs_modem_state, sysfs_type, fs_type; type sysfs_modem_state, sysfs_type, fs_type;
type sysfs_gps, sysfs_type, fs_type;

View file

@ -61,6 +61,8 @@ genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-7/7-0025/power_supply/tcpm-s
genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0025/power_supply/tcpm-source-psy-9-0025/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/10cb0000.hsi2c/i2c-9/9-0025/power_supply/tcpm-source-psy-9-0025/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/gnssif/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/gnssif/wakeup u:object_r:sysfs_wakeup:s0
# gps coredump node
genfscon sysfs /devices/platform/gnssif/coredump u:object_r:sysfs_gps:s0
# modem state # modem state
genfscon sysfs /devices/platform/cpif/modem_state u:object_r:sysfs_modem_state:s0 genfscon sysfs /devices/platform/cpif/modem_state u:object_r:sysfs_modem_state:s0

1
vendor/gnssd.te vendored
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;