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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user