sepolicy: allow setprop for thermal_controld

selinux denied log:
[   53.774820] type=1400 audit(1709683991.036:9): avc:  denied  { write } for  comm="setprop" name="property_service" dev="tmpfs" ino=842 scontext=u:r:pixel-thermal-control-sh:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0

Bug: 328118301
Test: adb shell getprop vendor.disable.thermalhal.control
Change-Id: I590f05d1119d11400b0115fff63b3420790e7332
This commit is contained in:
TeYuan Wang 2024-03-06 21:28:10 +00:00
parent bc4933eeb1
commit b878885499

View File

@ -9,5 +9,5 @@ userdebug_or_eng(`
allow pixel-thermal-control-sh sysfs_thermal:file rw_file_perms;
allow pixel-thermal-control-sh sysfs_thermal:lnk_file r_file_perms;
allow pixel-thermal-control-sh thermal_link_device:dir r_dir_perms;
get_prop(pixel-thermal-control-sh, vendor_thermal_prop)
set_prop(pixel-thermal-control-sh, vendor_thermal_prop)
')