fix the avc denied for maxfg/registers

01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:28): avc: denied { search } for name="maxfg" dev="debugfs" ino=31872 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=dir permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:29): avc: denied { read } for name="registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:30): avc: denied { open } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:31): avc: denied { getattr } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo

Bug: 208909060
Test: adb bugreport
Change-Id: I72a6b72e568fe109350edd2a0a91747251e6fba4
Signed-off-by: Ted Lin <tedlin@google.com>
2 files changed