问题描述
CtsSecurityTestCases -t android.security.cts.SeccompTest#testCTSSwapOnOffBlocked test fail
03-19 15:16:56 D/ModuleListener: ModuleListener.testFailed(android.security.cts.SeccompTest#testCTSSwapOnOffBlocked, junit.framework.AssertionFailedError: Syscall 224 allowed
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.assertTrue(Assert.java:20)
at android.security.cts.SeccompTest.testBlocked(SeccompTest.java:95)
at android.security.cts.SeccompTest.testCTSSwapOnOffBlocked(SeccompTest.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
解决方案
造成这项fail的原因是客户自行将selinux的权限关闭了,google默认selinux的权限默认是enforcing,修改成enforcing之后测试可通过。