Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb4c2ca7 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by Michael Bestas
Browse files

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
parent f44bee61
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -822,7 +822,7 @@ static bool selinux_load_split_policy() {
    const char* compile_args[] = {
    const char* compile_args[] = {
        "/system/bin/secilc",
        "/system/bin/secilc",
        plat_policy_cil_file,
        plat_policy_cil_file,
        "-M", "true", "-G", "-N",
        "-m", "-M", "true", "-G", "-N",
        // Target the highest policy language version supported by the kernel
        // Target the highest policy language version supported by the kernel
        "-c", version_as_string.c_str(),
        "-c", version_as_string.c_str(),
        mapping_file.c_str(),
        mapping_file.c_str(),