Add mmd.enabled_aconfig to sepolicy
"mmd --set-property" command copies AConfig flag to
"mmd.enabled_aconfig" system property to control mmd whether to start
or not at aosp/3368262.
Bug: 375431994
Test: manual
Change-Id: I27691243d9eed73fff9baccd9d23a346c18d7f4c
diff --git a/private/mmd.te b/private/mmd.te
index 193c307..4e49519 100644
--- a/private/mmd.te
+++ b/private/mmd.te
@@ -5,6 +5,9 @@
init_daemon_domain(mmd)
+# Set mmd.enabled_aconfig properties.
+set_prop(mmd, mmd_prop)
+
# mmd binder setup
add_service(mmd, mmd_service)
binder_use(mmd)
diff --git a/private/property.te b/private/property.te
index e098fb2..e8d1eee 100644
--- a/private/property.te
+++ b/private/property.te
@@ -35,6 +35,7 @@
system_internal_prop(localization_prop)
system_internal_prop(logd_auditrate_prop)
system_internal_prop(lower_kptr_restrict_prop)
+system_internal_prop(mmd_prop)
system_internal_prop(net_464xlat_fromvendor_prop)
system_internal_prop(net_connectivity_prop)
system_internal_prop(netd_stable_secret_prop)
diff --git a/private/property_contexts b/private/property_contexts
index 163c873..eab1e86 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -1776,3 +1776,6 @@
# Properties that allows vendors to enable Trusty security VM features
trusty.security_vm.enabled u:object_r:trusty_security_vm_sys_vendor_prop:s0 exact bool
trusty.security_vm.keymint.enabled u:object_r:trusty_security_vm_sys_vendor_prop:s0 exact bool
+
+# Properties for mmd
+mmd.enabled_aconfig u:object_r:mmd_prop:s0 exact bool