gps: add sepolicy to coredump node am: 1ee114f4d7

Original change: https://googleplex-android-review.googlesource.com/c/device/google/akita-sepolicy/+/24918561

Change-Id: Id9c4b2ad71d998d96e46b7d0b459241b2f22b98c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Cheng Chang 2023-10-05 15:51:45 +00:00 committed by Automerger Merge Worker
commit d42a620d41
3 changed files with 5 additions and 1 deletions

1
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;