Skip to content
Snippets Groups Projects
Select Git revision
  • android-7.1.2_r28_klist
  • master default protected
  • pie-cts-release
  • pie-vts-release
  • pie-cts-dev
  • oreo-mr1-iot-release
  • sdk-release
  • oreo-m6-s4-release
  • oreo-m4-s12-release
  • pie-release
  • pie-r2-release
  • pie-r2-s1-release
  • oreo-vts-release
  • oreo-cts-release
  • oreo-dev
  • oreo-mr1-dev
  • pie-gsi
  • pie-platform-release
  • pie-dev
  • oreo-cts-dev
  • android-o-mr1-iot-release-1.0.4
  • android-9.0.0_r8
  • android-9.0.0_r7
  • android-9.0.0_r6
  • android-9.0.0_r5
  • android-8.1.0_r46
  • android-8.1.0_r45
  • android-n-iot-release-smart-display-r2
  • android-vts-8.1_r5
  • android-cts-8.1_r8
  • android-cts-8.0_r12
  • android-cts-7.1_r20
  • android-cts-7.0_r24
  • android-o-mr1-iot-release-1.0.3
  • android-cts-9.0_r1
  • android-8.1.0_r43
  • android-8.1.0_r42
  • android-n-iot-release-smart-display
  • android-p-preview-5
  • android-9.0.0_r3
40 results

te_macros

  • Stephen Smalley's avatar
    9ba844fe
    Coalesce shared_app, media_app, release_app into untrusted_app. · 9ba844fe
    Stephen Smalley authored
    
    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: default avatarStephen Smalley <sds@tycho.nsa.gov>
    9ba844fe
    History
    Coalesce shared_app, media_app, release_app into untrusted_app.
    Stephen Smalley authored
    
    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: default avatarStephen Smalley <sds@tycho.nsa.gov>