summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2013-04-05 11:03:30 -0400
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-18 21:03:08 +0100
commit62d90c610fb01dba1b8c79b1de51c499a5244fbf (patch)
tree3af75bbb2a6f2ddd9e139abcf04ab0a05567c5a3 /services
parentc22f6e07f4d6fa5397f16586c2ef5c35e4583247 (diff)
downloadframeworks_base-62d90c610fb01dba1b8c79b1de51c499a5244fbf.zip
frameworks_base-62d90c610fb01dba1b8c79b1de51c499a5244fbf.tar.gz
frameworks_base-62d90c610fb01dba1b8c79b1de51c499a5244fbf.tar.bz2
Follow AOSP behavior for seinfo assignment.
No distinctions can be made among third party apps. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> Change-Id: Ic894086485bfea884c0e21af13f98a2d54346b15
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/pm/SELinuxMMAC.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/services/java/com/android/server/pm/SELinuxMMAC.java b/services/java/com/android/server/pm/SELinuxMMAC.java
index b2f218b..c4acd9b 100644
--- a/services/java/com/android/server/pm/SELinuxMMAC.java
+++ b/services/java/com/android/server/pm/SELinuxMMAC.java
@@ -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)) {