sm6225-common : allow vendor_hvdcp to access sysfs

avc: denied { read } for comm="hvdcp_opti" name="name" dev="sysfs" ino=86827 scontext=u:r:vendor_hvdcp:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
This commit is contained in:
itsnouralawad
2024-05-08 18:16:04 +00:00
parent 5c0e34fea2
commit fcd412576d

4
sepolicy/vendor/hvdcp.te vendored Normal file
View File

@@ -0,0 +1,4 @@
r_dir_file(vendor_hvdcp, vendor_sysfs_battery_supply)
rw_dir_file(vendor_hvdcp, sysfs)
allow vendor_hvdcp sysfs_batteryinfo:dir search;
set_prop(vendor_hvdcp, ctl_stop_prop)