Commits
faqiang.zhu committed c2383cfacc4
MA-15841-1 fix denials happened when invoking dumpstate the case "android.security.cts.SELinuxHostTest#testNoBugreportDenials" of module "CtsSecurityHostTestCases" will invoke bugreportz, bugreportz will invoke dumpstate. the case will then check whether there is selinux denial message about dumpstate. dumpstate will read info from procfs, debugfs and sysfs. 1. the file in procfs is allowed to be accessed by dumpstate already. 2. files in sysfs not explicity labled are neverallowed to be accessed by dumpstate, the files accessed is named "stat" under the directory of "/sys/block", it's softlink, explicity lable these block related files. 3. allow the access of debugfs for dumpstate. test: run this case on evk_8mm with LPDDR4/DDR4 Change-Id: I9b9fb6bfb61745328f0bc23260a0dab3241f4285 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/10511 Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>