diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index de7c3f1..bd15d72 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -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 diff --git a/sepolicy/vendor/hal_usb.te b/sepolicy/vendor/hal_usb.te new file mode 100644 index 0000000..74c925e --- /dev/null +++ b/sepolicy/vendor/hal_usb.te @@ -0,0 +1 @@ +allow vendor_hal_usb_qti vendor_sysfs_sensors:dir r_dir_perms; diff --git a/sepolicy/vendor/hvdcp.te b/sepolicy/vendor/hvdcp.te new file mode 100644 index 0000000..875df35 --- /dev/null +++ b/sepolicy/vendor/hvdcp.te @@ -0,0 +1,2 @@ +allow vendor_hvdcp vendor_sysfs_sensors:dir r_dir_perms; +allow vendor_hvdcp vendor_sysfs_sensors:file r_file_perms;