From d2782533785c04652b075d8ea926bc9fd487ad5a Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Wed, 12 Apr 2017 16:44:26 -0700 Subject: [PATCH] init: expand generated attributes on sepolicy compile Expand auto generated attributes in selinux policy when doing on-device compile of platform + vendor selinux policy. Bug: 3650825 Test: Build and boot Marlin Change-Id: Icc1c3af0b504236ae13fd8a5155c2109befd7688 --- init/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init.cpp b/init/init.cpp index 94bf37aa4..9b8f286f7 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -794,7 +794,7 @@ static bool selinux_load_split_policy() { const char* compile_args[] = { "/system/bin/secilc", plat_policy_cil_file, - "-M", "true", + "-M", "true", "-G", // Target the highest policy language version supported by the kernel "-c", std::to_string(max_policy_version).c_str(), "/system/etc/selinux/mapping_sepolicy.cil",