sm6225-common: sepolicy: Resolve hvdcp IIO denials

Change-Id: Ic2a3dbad57398b201a6b21cf846ec9b4848743e5
This commit is contained in:
Michael Bestas 2023-07-19 22:31:55 +03:00
parent 6d6a28f63a
commit 8f862572e7
No known key found for this signature in database
GPG key ID: CC95044519BE6669
3 changed files with 12 additions and 0 deletions

View file

@ -18,6 +18,15 @@ genfscon sysfs /devices/platform/soc/soc:mmi,discrete-charging/power_supply/batt
genfscon sysfs /devices/platform/soc/soc:mmi,discrete-charging/power_supply/dc u:object_r:vendor_sysfs_battery_supply:s0
genfscon sysfs /devices/platform/soc/soc:mmi_chrg_manager/power_supply/mmi_chrg_manager u:object_r:vendor_sysfs_battery_supply:s0
# IIO
genfscon sysfs /bus/iio u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-00/1c40000.qcom,spmi:qcom,pm6125@0:vadc@3100/iio:device u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-02/1c40000.qcom,spmi:qcom,pmi632@2:vadc@3100/iio:device u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/platform/soc/4a84000.i2c/i2c-0/0-0035/iio:device u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/platform/soc/4a84000.i2c/i2c-0/0-0066/iio:device u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/platform/soc/soc:mmi,discrete-charging/iio:device u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/platform/soc/soc:mmi_chrg_manager/iio:device u:object_r:vendor_sysfs_sensors:s0
# Input Devices
genfscon sysfs /devices/virtual/input u:object_r:vendor_sysfs_input:s0

1
sepolicy/vendor/hal_usb.te vendored Normal file
View file

@ -0,0 +1 @@
allow vendor_hal_usb_qti vendor_sysfs_sensors:dir r_dir_perms;

2
sepolicy/vendor/hvdcp.te vendored Normal file
View file

@ -0,0 +1,2 @@
allow vendor_hvdcp vendor_sysfs_sensors:dir r_dir_perms;
allow vendor_hvdcp vendor_sysfs_sensors:file r_file_perms;