From fcd412576d64a504956e2a3ed7eaa2a9a929c5f6 Mon Sep 17 00:00:00 2001 From: itsnouralawad Date: Wed, 8 May 2024 18:16:04 +0000 Subject: [PATCH] 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 --- 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)