AnsweredAssumed Answered

CTS result has errors. Android.os.cts.Seccomp....

Question asked by satoshiazami on Jul 5, 2018
Latest reply on Jul 11, 2018 by satoshiazami

Hi ALL,

 

I am debugging Android 6.0.1 on original board (SoC = i.MX6 DualLitte). OS is work fine now.

Then, I tested OS using CTS ( 6.0 r28 ). and I have fail status on this result.

I cannot fix this issue now. please advise!

 

* Kernel has configuration below.

  CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
  CONFIG_SECCOMP_FILTER=y
  CONFIG_SECCOMP=y

 

 

* CTS result snippet ..-----------------------------------------------------------------------------

            <Test name="testViolateIsolatedServicePolicy" result="fail" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018">
              <FailedScene message="junit.framework.AssertionFailedError&#13;&#10;at junit.framework.Assert.fail(Assert.java:48)&#13;">
                <StackTrace>junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at android.os.cts.SeccompTest.testViolateIsolatedServicePolicy(SeccompTest.java:239)
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)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
</StackTrace>
              </FailedScene>
            </Test>

            <Test name="testAndroidTestCaseSetupProperly" result="pass" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018" />
          </TestCase>
          <TestCase name="SecurityFeaturesTest" priority="">
            <Test name="testNoNewPrivs" result="fail" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018">
              <FailedScene message="junit.framework.AssertionFailedError&#13;&#10;at junit.framework.Assert.fail(Assert.java:48)&#13;">
                <StackTrace>junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at android.os.cts.SecurityFeaturesTest.testNoNewPrivs(SecurityFeaturesTest.java:31)
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)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
</StackTrace>
              </FailedScene>
            </Test>
            <Test name="testPrCapbsetEmpty" result="fail" starttime="豌エ 7 04 18:27:41 JST 2018" endtime="豌エ 7 04 18:27:41 JST 2018">
              <FailedScene message="junit.framework.AssertionFailedError: capability 0 is still in the bounding set expected:&lt;0&gt; but was:&lt;1&gt;&#13;&#10;at junit.framework.Assert.fail(Assert.java:50)&#13;">
                <StackTrace>junit.framework.AssertionFailedError: capability 0 is still in the bounding set expected:&lt;0&gt; but was:&lt;1&gt;
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.failNotEquals(Assert.java:287)
at junit.framework.Assert.assertEquals(Assert.java:67)
at junit.framework.Assert.assertEquals(Assert.java:199)
at android.os.cts.SecurityFeaturesTest.testPrCapbsetEmpty(SecurityFeaturesTest.java:50)
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)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at android.support.test.internal.runner.junit3.AndroidTestSuite$1.run(AndroidTestSuite.java:98)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
</StackTrace>
              </FailedScene>
            </Test>

 

-------------------------------------------------------------

Outcomes