Remove the attribute set from init.rc for debugfs

[    2.993897] audit: type=1400 audit(1623037840.652:4): avc:  denied  { setattr } for
pid=374 comm="init" name="registers" dev="debugfs" ino=9 scontext=u:r:vendor_init:s0
tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

[    3.079941] audit: type=1400 audit(1623037840.740:7): avc:  denied  { setattr } for  pid=374 comm="init" name="fg_model" dev="debugfs" ino=18 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=0

Bug: 190337297
Test: check bugreport
Change-Id: Ia6d33d6192b230be763e52298b86a21b632ffa90
Signed-off-by: Ted Lin <tedlin@google.com>
This commit is contained in:
Ted Lin 2021-06-09 14:49:22 +08:00 committed by TreeHugger Robot
parent 16934c353f
commit 0671df09b8

View file

@ -168,12 +168,6 @@ on init
# Dump maxfg # Dump maxfg
chown system system /sys/class/power_supply/maxfg/m5_model_state chown system system /sys/class/power_supply/maxfg/m5_model_state
chown system system /sys/class/power_supply/maxfg_base/m5_model_state chown system system /sys/class/power_supply/maxfg_base/m5_model_state
chown system system /d/maxfg/fg_model
chown system system /d/maxfg_base/fg_model
# pca9468 : slider+77729: 6-0057; slider+MW A1: 5-0057
chown system system /d/regmap/5-0057-pca9468-mains/registers
chown system system /d/regmap/6-0057-pca9468-mains/registers
# Dump eeprom # Dump eeprom
chown system system /sys/devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom chown system system /sys/devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom