sm6375-common: sepolicy: Allow vendor_hvdcp to access sysfs

* W hvdcp_opti: type=1400 audit(0.0:4035): avc:  denied  { read } for  name="name" dev="sysfs" ino=84102 scontext=u:r:vendor_hvdcp:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Change-Id: I022383cf00f4c3ede5755de73a5711b3c6145e5f
This commit is contained in:
itsnouralawad 2024-07-26 12:56:42 +05:30 committed by Anand S
parent 5115153b58
commit e2e64e11b0
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61

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)