Merge "gps: add sepolicy to allow gps access pps gpio" into sc-qpr1-dev am: 6c249e4a9f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15897560 Change-Id: If95d3e18d1da32b13246d0897d998935eb37c774
This commit is contained in:
commit
0a91edb9b7
3 changed files with 5 additions and 0 deletions
1
whitechapel/vendor/google/file.te
vendored
1
whitechapel/vendor/google/file.te
vendored
|
@ -139,6 +139,7 @@ userdebug_or_eng(`
|
||||||
typeattribute vendor_gps_file mlstrustedobject;
|
typeattribute vendor_gps_file mlstrustedobject;
|
||||||
')
|
')
|
||||||
type sysfs_gps, sysfs_type, fs_type;
|
type sysfs_gps, sysfs_type, fs_type;
|
||||||
|
type sysfs_gps_assert, sysfs_type, fs_type;
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
type sysfs_display, sysfs_type, fs_type;
|
type sysfs_display, sysfs_type, fs_type;
|
||||||
|
|
1
whitechapel/vendor/google/genfs_contexts
vendored
1
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -108,6 +108,7 @@ genfscon sysfs /devices/virtual/sec/tsp
|
||||||
|
|
||||||
# GPS
|
# GPS
|
||||||
genfscon sysfs /devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby u:object_r:sysfs_gps:s0
|
genfscon sysfs /devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby u:object_r:sysfs_gps:s0
|
||||||
|
genfscon sysfs /devices/virtual/pps/pps0/assert_elapsed u:object_r:sysfs_gps_assert:s0
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/gamma u:object_r:sysfs_display:s0
|
genfscon sysfs /devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/gamma u:object_r:sysfs_display:s0
|
||||||
|
|
3
whitechapel/vendor/google/gpsd.te
vendored
3
whitechapel/vendor/google/gpsd.te
vendored
|
@ -23,3 +23,6 @@ allow gpsd hal_exynos_rild_hwservice:hwservice_manager find;
|
||||||
# Allow gpsd to access sensor service
|
# Allow gpsd to access sensor service
|
||||||
binder_call(gpsd, system_server);
|
binder_call(gpsd, system_server);
|
||||||
allow gpsd fwk_sensor_hwservice:hwservice_manager find;
|
allow gpsd fwk_sensor_hwservice:hwservice_manager find;
|
||||||
|
|
||||||
|
# Allow gpsd to access pps gpio
|
||||||
|
allow gpsd sysfs_gps_assert:file r_file_perms;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue