From 297127bb5ea2a7deb9bc04bac557b003811fc466 Mon Sep 17 00:00:00 2001 From: itsnouralawad Date: Fri, 26 Jul 2024 20:16:00 +0530 Subject: [PATCH] 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 --- sepolicy/vendor/hvdcp.te | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sepolicy/vendor/hvdcp.te diff --git a/sepolicy/vendor/hvdcp.te b/sepolicy/vendor/hvdcp.te new file mode 100644 index 0000000..d37946b --- /dev/null +++ b/sepolicy/vendor/hvdcp.te @@ -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)