commit | 4cf46ce40a5085243e37d4fc3d2832e2db92e428 | [log] [tgz] |
---|---|---|
author | Inseob Kim <inseob@google.com> | Wed Feb 09 23:31:12 2022 +0900 |
committer | Inseob Kim <inseob@google.com> | Fri Feb 11 19:23:27 2022 +0900 |
tree | 123ce4ddbd987bbb0ca8744f844921b3aba995c3 | |
parent | 232afccaade93fe0cb3276dfa2e123ad253d1be9 [diff] |
Add test to check if microdroid selinux is enabled Bug: 218461215 Test: atest MicrodroidHostTestCases Change-Id: I49f545c65bdd6f0dc0183c390e81583d7b2efbfd
diff --git a/tests/hostside/java/android/virt/test/MicrodroidTestCase.java b/tests/hostside/java/android/virt/test/MicrodroidTestCase.java index 25adc40..6dacf23 100644 --- a/tests/hostside/java/android/virt/test/MicrodroidTestCase.java +++ b/tests/hostside/java/android/virt/test/MicrodroidTestCase.java
@@ -119,6 +119,9 @@ assertThat(runOnMicrodroid("cat /proc/cpuinfo | grep processor | wc -l"), is(Integer.toString(NUM_VCPUS))); + // Check that selinux is enabled + assertThat(runOnMicrodroid("getenforce"), is("Enforcing")); + // TODO(b/176805428): adb is broken for nested VM if (!isCuttlefish()) { // Check neverallow rules on microdroid