From 5e9ba3c50bfe073d525566c42878811248664c93 Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Fri, 6 Oct 2017 17:03:45 -0700 Subject: [PATCH] Allow redeclaring typeattributes Allows partners to add a new attribute definition to their public policy without causing a compatibility failure with the AOSP system image. Bug: 67092827 Bug: 37915794 Test: build and boot aosp_sailfish with a new type declared in public policy. Change-Id: I3899065affb6806ae9080e1a7dfa5a6f368370f0 --- init/selinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/selinux.cpp b/init/selinux.cpp index 3f7ad13e8..c4b01e648 100644 --- a/init/selinux.cpp +++ b/init/selinux.cpp @@ -328,7 +328,7 @@ bool LoadSplitPolicy() { std::vector compile_args { "/system/bin/secilc", plat_policy_cil_file, - "-M", "true", "-G", "-N", + "-m", "-M", "true", "-G", "-N", // Target the highest policy language version supported by the kernel "-c", version_as_string.c_str(), mapping_file.c_str(),