platform_system_sepolicy/microdroid
Alan Stokes 7bde36e94e Remove redundant sepolicy
We don't use MLS in Microdroid, so we don't need MLS rules, nor
mlstrusted[subject|object] labels. (We keep one MLS rule to satisfy
checkpolicy.)

A lot of attributes are unused in Microdroid, so we can remove their
declarations and any references to them. (That may not make the
compiled policy smaller, since hopefully they get optimised out
anyway, but it means there is less policy for humans to deal with.)

Remove labels that relate only to apps, which we don't have - MAC
permissions, run-as, seapp_contexts.

In passing, fix a comment snafu in both system & microdroid policy.

Bug: 223596375
Test: Run staged-apex-compile & compos_verify, no denials
Test: atest MicrodroidTests MicrodroidHostTestCases
Change-Id: Ifd3589945a2d8b4c0361e00eec5678795513fd8c
2022-03-15 15:43:50 +00:00
..
reqd_mask Touch up microdroid sepolicy after removing keystore 2022-01-28 13:07:16 +00:00
system Remove redundant sepolicy 2022-03-15 15:43:50 +00:00
vendor Define access to AVF chosen node properties 2022-03-14 11:38:45 +00:00
Android.bp microdroid: Set mls_cats to 1 2022-03-10 13:16:13 +09:00
TEST_MAPPING Run Virtualization tests when we change microdroid policy 2021-12-09 11:35:36 +00:00