diff options
author | Maciej Żenczykowski <maze@google.com> | 2022-06-23 10:50:28 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-06-23 10:50:28 +0000 |
commit | 8c0956c939f43996cb31388f98291fd2176cde7b (patch) | |
tree | 606e62e7cd90aa8f0d16a1721b57ab1f68794865 | |
parent | b0c42ec27c0768083654c17a37da845fcf983da2 (diff) | |
parent | eebd22cfc67a6cd746ff5fb40b755b289172bd72 (diff) | |
download | cts-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.java | 11 |
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 |