Dump the debugfs information only in userdebug build

W/sh      (10769): type=1400 audit(0.0:416): avc: denied { read } for name="/" dev="dm-5" ino=2 scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
W/sh      (10771): type=1400 audit(0.0:417): avc: denied { read } for name="/" dev="dm-5" ino=2 scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0

Bug: 160544144
Test: run cts -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testNoBugreportDenials
Change-Id: Ic96f36832eb407d96adf2f3c71504754f298a9f7
1 file changed