type=1400 audit(1656889974.500:4): avc: denied { setattr } for comm="init" name="fg_model" dev="debugfs" ino=32089 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=0 type=1400 audit(1656889974.500:5): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=32095 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=0 Bug: 226271913 Signed-off-by: Jenny Ho <hsiufangho@google.com> Change-Id: I376aeb1af4f6d0ba026c34a6ee7642a0a53e6320
33 lines
1.5 KiB
Text
33 lines
1.5 KiB
Text
on early-init
|
|
mount debugfs /sys/kernel/debug /sys/kernel/debug
|
|
|
|
# SJTAG
|
|
on init
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/access_lvl
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/auth
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/begin
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/dbg_domain
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/dbg_itvl
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/end
|
|
chown system system /sys/devices/platform/sjtag_ap/interface/pubkey
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/access_lvl
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/auth
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/begin
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_domain
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/dbg_itvl
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/end
|
|
chown system system /sys/devices/platform/sjtag_gsa/interface/pubkey
|
|
|
|
on property:vendor.debug.ramdump.force_crash=true
|
|
write /sys/kernel/pixel_debug/trigger "null"
|
|
|
|
on property:power.battery_input.suspended=true
|
|
write /sys/kernel/debug/google_charger/input_suspend 1
|
|
|
|
on property:power.battery_input.suspended=false
|
|
write /sys/kernel/debug/google_charger/input_suspend 0
|
|
|
|
# Bluetooth
|
|
on post-fs-data
|
|
chown bluetooth system /dev/logbuffer_btlpm
|
|
chown bluetooth system /dev/logbuffer_tty18
|