blob: cee6675a75fbf2b0e2ceab3f307cf41b0f257077 [file] [log] [blame]
Inseob Kime1389972021-07-19 07:48:34 +00001#################################################
2# MLS policy constraints
3#
4
Alan Stokes7bde36e2022-03-09 16:41:06 +00005# We aren't using MLS in Microdroid. But the policy grammar requires
6# at least one MLS declaration, and checkpolicy enforces this. We
7# don't want to disable MLS, since we share some file labels with the
8# host (e.g. files in APEXes) which does have MLS. So we include this
9# fairly harmless constraint.
Inseob Kime1389972021-07-19 07:48:34 +000010
Alan Stokes7bde36e2022-03-09 16:41:06 +000011# Process transition: Require equivalence.
12mlsconstrain process { transition dyntransition } (h1 eq h2 and l1 eq l2);