sm8150-common: sepolicy: Fix parts LED denials

avc: denied { search } for comm="eageos.settings" name="leds"
dev="sysfs" ino=51054 scontext=u:r:devicesettings_app:s0
tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=0

Change-Id: I7549118b354cdc357ef2c57db9cc21216b2b173a
This commit is contained in:
armdebug
2025-10-31 09:59:25 -04:00
committed by firebird11
parent b36c0ceabe
commit a760ec9de3

View File

@@ -19,8 +19,11 @@ allow devicesettings_app system_app_data_file:{ file lnk_file } create_file_perm
# Allow binder communication with gpuservice
binder_call(devicesettings_app, gpuservice)
# Allow XiaomiParts to write to sysfs_leds
allow devicesettings_app sysfs_leds:file w_file_perms;
# Allow XiaomiParts to search sysfs_leds directory
allow devicesettings_app sysfs_leds:dir search;
# Allow XiaomiParts to read/write to sysfs_leds
allow devicesettings_app sysfs_leds:file rw_file_perms;
# Allow XiaomiParts to write to sysfs_thermal
allow devicesettings_app sysfs_thermal:file w_file_perms;