Skip to content
Snippets Groups Projects
app.te 1.68 KiB
Newer Older
  • Learn to ignore specific revisions
  • Stephen Smalley's avatar
    Stephen Smalley committed
    #
    # Domains for apps that do not run with one of the predefined
    # platform UIDs (system, radio, nfc, ...).
    #
    
    #
    
    # Apps signed with the platform key.
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    #
    
    permissive platform_app;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    # Access the network.
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    # Access bluetooth.
    
    repo sync's avatar
    repo sync committed
    unconfined_domain(platform_app)
    
    
    # Apps signed with the media key.
    type media_app, domain;
    
    permissive media_app;
    
    # Access the network.
    net_domain(media_app)
    
    repo sync's avatar
    repo sync committed
    unconfined_domain(media_app)
    
    relabelto_domain(media_app)
    allow media_app download_file:dir relabelto;
    
    # Apps signed with the shared key.
    type shared_app, domain;
    
    permissive shared_app;
    
    # Access the network.
    net_domain(shared_app)
    # Access bluetooth.
    bluetooth_domain(shared_app)
    
    repo sync's avatar
    repo sync committed
    unconfined_domain(shared_app)
    
    
    # Apps signed with the release key (testkey in AOSP).
    type release_app, domain;
    
    permissive release_app;
    
    # Access the network.
    net_domain(release_app)
    # Access bluetooth.
    bluetooth_domain(release_app)
    
    repo sync's avatar
    repo sync committed
    unconfined_domain(release_app)
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    
    
    # Services with isolatedProcess=true in their manifest.
    
    # In order for isolated_apps to interact with apps that have levelFromUid=true
    # set it must be an mlstrustedsubject.
    type isolated_app, domain, mlstrustedsubject;
    
    permissive isolated_app;
    
    app_domain(isolated_app)
    
    repo sync's avatar
    repo sync committed
    unconfined_domain(isolated_app)
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    #
    # Untrusted apps.
    #
    type untrusted_app, domain;
    
    permissive untrusted_app;
    
    Stephen Smalley's avatar
    Stephen Smalley committed
    app_domain(untrusted_app)
    
    net_domain(untrusted_app)
    bluetooth_domain(untrusted_app)
    
    repo sync's avatar
    repo sync committed
    unconfined_domain(untrusted_app)