sm6375-common: sepolicy: Allow init (recovery) to access USB sysfs

Add genfs contexts for USB sysfs entry that control the operational
mode and assign them as vendor_sysfs_usb_device type.

Change-Id: Ic1f0c5e9237848ac47cebca6e2cbbe9bd25270ad
This commit is contained in:
Jack Pham 2024-07-16 12:56:42 +05:30 committed by Anand S
parent 2753c420ea
commit e61118e7a9
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61

View file

@ -50,6 +50,9 @@ genfscon sysfs /devices/virtual/touchscreen
genfscon sysfs /devices/platform/soc/a94000.i2c/i2c-2/2-0049/touchscreen u:object_r:vendor_sysfs_touchpanel:s0
genfscon sysfs /devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0 u:object_r:vendor_sysfs_touchpanel:s0
# USB
genfscon sysfs /devices/platform/soc/4e00000.ssusb/mode u:object_r:vendor_sysfs_usb_device:s0
# Vibrator
genfscon sysfs /devices/platform/soc/984000.i2c/i2c-0/0-005a/leds/vibrator u:object_r:sysfs_vibrator:s0