summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2022-06-23 10:50:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-06-23 10:50:28 +0000
commit8c0956c939f43996cb31388f98291fd2176cde7b (patch)
tree606e62e7cd90aa8f0d16a1721b57ab1f68794865
parentb0c42ec27c0768083654c17a37da845fcf983da2 (diff)
parenteebd22cfc67a6cd746ff5fb40b755b289172bd72 (diff)
downloadcts-8c0956c939f43996cb31388f98291fd2176cde7b.tar.gz
Merge "Enforce that all types in /sys/fs/bpf have the bpffs_type attribute." into tm-dev
-rw-r--r--hostsidetests/security/src/android/security/cts/SELinuxHostTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/hostsidetests/security/src/android/security/cts/SELinuxHostTest.java b/hostsidetests/security/src/android/security/cts/SELinuxHostTest.java
index 039867bbc85..573035c2de3 100644
--- a/hostsidetests/security/src/android/security/cts/SELinuxHostTest.java
+++ b/hostsidetests/security/src/android/security/cts/SELinuxHostTest.java
@@ -983,6 +983,17 @@ public class SELinuxHostTest extends BaseHostJUnit4Test {
}
/**
+ * Tests that all types in /sys/fs/bpf have the bpffs_type attribute.
+ *
+ * @throws Exception
+ */
+ @Test
+ public void testBpffsTypeViolators() throws Exception {
+ assertSepolicyTests("TestBpffsTypeViolations", "/sepolicy_tests",
+ PropertyUtil.isVendorApiLevelNewerThan(mDevice, 33) /* includeVendorSepolicy */);
+ }
+
+ /**
* Tests that all types in /proc have the proc_type attribute.
*
* @throws Exception