sepolicy: gs101: allows pixelstat to access pca file nodes am: d6c1a50bba
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15360184 Change-Id: Ic3efb76715139aa335995b95e7756f23b5de226c
This commit is contained in:
commit
2c79c75768
3 changed files with 9 additions and 4 deletions
3
whitechapel/vendor/google/file.te
vendored
3
whitechapel/vendor/google/file.te
vendored
|
@ -124,6 +124,9 @@ type tcpdump_vendor_data_file, file_type, data_file_type, mlstrustedobject;
|
|||
# Wireless
|
||||
type sysfs_wlc, sysfs_type, fs_type;
|
||||
|
||||
# Pca
|
||||
type sysfs_pca, sysfs_type, fs_type;
|
||||
|
||||
# Camera
|
||||
type persist_camera_file, file_type;
|
||||
type vendor_camera_tuning_file, vendor_file_type, file_type;
|
||||
|
|
2
whitechapel/vendor/google/genfs_contexts
vendored
2
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -26,6 +26,7 @@ genfscon sysfs /devices/platform/10970000.hsi2c/i2c-5/i2c-p9412/power_supply
|
|||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom u:object_r:sysfs_batteryinfo:s0
|
||||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-5/5-0061/power_supply u:object_r:sysfs_batteryinfo:s0
|
||||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-5/5-0036/power_supply u:object_r:sysfs_batteryinfo:s0
|
||||
genfscon sysfs /devices/platform/10d50000.hsi2c/i2c-6/6-0057/chg_stats u:object_r:sysfs_pca:s0
|
||||
|
||||
genfscon sysfs /devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats u:object_r:sysfs_power_stats:s0
|
||||
|
||||
|
@ -33,6 +34,7 @@ genfscon sysfs /devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power
|
|||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/i2c-p9412 u:object_r:sysfs_wlc:s0
|
||||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/i2c-p9412/power_supply u:object_r:sysfs_batteryinfo:s0
|
||||
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/4-0050/eeprom u:object_r:sysfs_batteryinfo:s0
|
||||
genfscon sysfs /devices/platform/10d50000.hsi2c/i2c-5/5-0057/chg_stats u:object_r:sysfs_pca:s0
|
||||
|
||||
# Storage
|
||||
genfscon debugfs /f2fs u:object_r:debugfs_f2fs:s0
|
||||
|
|
|
@ -16,19 +16,19 @@ allow pixelstats_vendor fwk_stats_service:service_manager find;
|
|||
allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;
|
||||
allow pixelstats_vendor sysfs_pixelstats:file r_file_perms;
|
||||
|
||||
# Wireless charge
|
||||
allow pixelstats_vendor sysfs_wlc:dir search;
|
||||
allow pixelstats_vendor sysfs_wlc:file rw_file_perms;
|
||||
|
||||
# Pca charge
|
||||
allow pixelstats_vendor sysfs_pca:file rw_file_perms;
|
||||
|
||||
# OrientationCollector
|
||||
allow pixelstats_vendor fwk_sensor_hwservice:hwservice_manager find;
|
||||
|
||||
# Batery history
|
||||
allow pixelstats_vendor battery_history_device:chr_file r_file_perms;
|
||||
|
||||
# Wireless charge
|
||||
allow pixelstats_vendor sysfs_wlc:dir search;
|
||||
allow pixelstats_vendor sysfs_wlc:file r_file_perms;
|
||||
|
||||
# BCL
|
||||
allow pixelstats_vendor sysfs_bcl:dir search;
|
||||
allow pixelstats_vendor sysfs_bcl:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue