aboutsummaryrefslogtreecommitdiffstats
path: root/seapp_contexts
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2014-04-04 09:09:25 -0400
committerStephen Smalley <sds@tycho.nsa.gov>2014-04-04 18:24:09 +0000
commit9ba844fea12a0b08770e870d63f3d3c375c7c9b5 (patch)
tree600d7aaaa9b1f548628d0a4742efe35baa2cd846 /seapp_contexts
parent3fa9b4ddcb4dcab0f133e05430400194c7556a3b (diff)
downloadandroid_external_sepolicy-9ba844fea12a0b08770e870d63f3d3c375c7c9b5.tar.gz
android_external_sepolicy-9ba844fea12a0b08770e870d63f3d3c375c7c9b5.tar.bz2
android_external_sepolicy-9ba844fea12a0b08770e870d63f3d3c375c7c9b5.zip
Coalesce shared_app, media_app, release_app into untrusted_app.
This change folds the shared_app, media_app, and release_app domains into untrusted_app, reducing the set of app domains down to just distinct domains for the fixed UID apps (e.g. system_app, bluetooth, nfc, radio), a single domain for apps signed by the platform key (platform_app), and a single domain for all other apps (untrusted_app). Thus, SELinux only distinguishes when already distinguished by a predefined Android ID (AID) or by the platform certificate (which get the signature-only Android permissions and thus may require special OS-level accesses). It is still possible to introduce specific app domains for specific apps by adding signer and package stanzas to mac_permissions.xml, but this can be done on an as-needed basis for specialized apps that require particular OS-level permissions outside the usual set. As there is now only a single platform app domains, get rid of the platformappdomain attribute and platform_app_domain() macro. We used to add mlstrustedsubject to those domains but drop this since we are not using MLS in AOSP presently; we can revisit which domains need it if/when we use MLS. Since we are dropping the shared, media, and release seinfo entries from seapp_contexts, drop them from mac_permissions.xml as well. However, we leave the keys.conf entries in case someone wants to add a signer entry in the future for specific apps signed by those keys to mac_permissions.xml. Change-Id: I877192cca07360c4a3c0ef475f016cc273e1d968 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'seapp_contexts')
-rw-r--r--seapp_contexts7
1 files changed, 2 insertions, 5 deletions
diff --git a/seapp_contexts b/seapp_contexts
index ff0964a..7b217fb 100644
--- a/seapp_contexts
+++ b/seapp_contexts
@@ -40,9 +40,6 @@ user=bluetooth domain=bluetooth type=bluetooth_data_file
user=nfc domain=nfc type=nfc_data_file
user=radio domain=radio type=radio_data_file
user=shell domain=shell type=shell_data_file
-user=_app domain=untrusted_app type=app_data_file
-user=_app seinfo=platform domain=platform_app type=app_data_file
-user=_app seinfo=shared domain=shared_app type=app_data_file
-user=_app seinfo=media domain=media_app type=app_data_file
-user=_app seinfo=release domain=release_app type=app_data_file
user=_isolated domain=isolated_app
+user=_app seinfo=platform domain=platform_app type=app_data_file
+user=_app domain=untrusted_app type=app_data_file