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

Commit 62d90c61 authored by Stephen Smalley's avatar Stephen Smalley Committed by Ricardo Cerqueira
Browse files

Follow AOSP behavior for seinfo assignment.



No distinctions can be made among third party apps.

Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>

Change-Id: Ic894086485bfea884c0e21af13f98a2d54346b15
parent c22f6e07
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -467,10 +467,9 @@ public final class SELinuxMMAC {
         * tag, if one exists in the policy, else null, without respect
         * to the signing key.
         */
        /*

        if (((pkg.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) ||
            ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0)) {
        */

            // We just want one of the signatures to match.
            for (Signature s : pkg.mSignatures) {
@@ -503,7 +502,7 @@ public final class SELinuxMMAC {
                }
                return passed;
            }
        //}
        }

        // Check for a default policy.
        if (SIG_POLICY.containsKey(null)) {