Skip to content
Snippets Groups Projects
Commit 50e37b93 authored by repo sync's avatar repo sync
Browse files

Move domains into per-domain permissive mode.

Bug: 4070557
Change-Id: I027f76cff6df90e9909711cb81fbd17db95233c1
parent b77b3aff
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
# Apps signed with the platform key. # Apps signed with the platform key.
# #
type platform_app, domain; type platform_app, domain;
permissive platform_app;
app_domain(platform_app) app_domain(platform_app)
platform_app_domain(platform_app) platform_app_domain(platform_app)
# Access the network. # Access the network.
...@@ -31,6 +32,7 @@ allow platform_app download_file:file rw_file_perms; ...@@ -31,6 +32,7 @@ allow platform_app download_file:file rw_file_perms;
# Apps signed with the media key. # Apps signed with the media key.
type media_app, domain; type media_app, domain;
permissive media_app;
app_domain(media_app) app_domain(media_app)
platform_app_domain(media_app) platform_app_domain(media_app)
# Access the network. # Access the network.
...@@ -54,6 +56,7 @@ allow media_app download_file:dir relabelto; ...@@ -54,6 +56,7 @@ allow media_app download_file:dir relabelto;
# Apps signed with the shared key. # Apps signed with the shared key.
type shared_app, domain; type shared_app, domain;
permissive shared_app;
app_domain(shared_app) app_domain(shared_app)
platform_app_domain(shared_app) platform_app_domain(shared_app)
# Access the network. # Access the network.
...@@ -65,6 +68,7 @@ r_dir_file(shared_app, asec_apk_file) ...@@ -65,6 +68,7 @@ r_dir_file(shared_app, asec_apk_file)
# Apps signed with the release key (testkey in AOSP). # Apps signed with the release key (testkey in AOSP).
type release_app, domain; type release_app, domain;
permissive release_app;
app_domain(release_app) app_domain(release_app)
platform_app_domain(release_app) platform_app_domain(release_app)
# Access the network. # Access the network.
...@@ -76,6 +80,7 @@ bluetooth_domain(release_app) ...@@ -76,6 +80,7 @@ bluetooth_domain(release_app)
# In order for isolated_apps to interact with apps that have levelFromUid=true # In order for isolated_apps to interact with apps that have levelFromUid=true
# set it must be an mlstrustedsubject. # set it must be an mlstrustedsubject.
type isolated_app, domain, mlstrustedsubject; type isolated_app, domain, mlstrustedsubject;
permissive isolated_app;
app_domain(isolated_app) app_domain(isolated_app)
# #
...@@ -94,6 +99,7 @@ allow platformappdomain sdcard_type:file create_file_perms; ...@@ -94,6 +99,7 @@ allow platformappdomain sdcard_type:file create_file_perms;
# Untrusted apps. # Untrusted apps.
# #
type untrusted_app, domain; type untrusted_app, domain;
permissive untrusted_app;
app_domain(untrusted_app) app_domain(untrusted_app)
net_domain(untrusted_app) net_domain(untrusted_app)
bluetooth_domain(untrusted_app) bluetooth_domain(untrusted_app)
......
# bluetooth subsystem # bluetooth subsystem
type bluetooth, domain; type bluetooth, domain;
permissive bluetooth;
app_domain(bluetooth) app_domain(bluetooth)
# Data file accesses. # Data file accesses.
......
# bluetoothd - bluetooth daemon # bluetoothd - bluetooth daemon
type bluetoothd, domain; type bluetoothd, domain;
permissive bluetoothd;
type bluetoothd_exec, exec_type, file_type; type bluetoothd_exec, exec_type, file_type;
init_daemon_domain(bluetoothd) init_daemon_domain(bluetoothd)
......
# dbus daemon # dbus daemon
type dbusd, domain; type dbusd, domain;
permissive dbusd;
type dbusd_exec, exec_type, file_type; type dbusd_exec, exec_type, file_type;
init_daemon_domain(dbusd) init_daemon_domain(dbusd)
......
# debugger interface # debugger interface
type debuggerd, domain; type debuggerd, domain;
permissive debuggerd;
type debuggerd_exec, exec_type, file_type; type debuggerd_exec, exec_type, file_type;
init_daemon_domain(debuggerd) init_daemon_domain(debuggerd)
......
type dhcp, domain; type dhcp, domain;
permissive dhcp;
type dhcp_exec, exec_type, file_type; type dhcp_exec, exec_type, file_type;
type dhcp_data_file, file_type, data_file_type; type dhcp_data_file, file_type, data_file_type;
type dhcp_system_file, file_type, data_file_type; type dhcp_system_file, file_type, data_file_type;
......
# drmserver - DRM service # drmserver - DRM service
type drmserver, domain; type drmserver, domain;
permissive drmserver;
type drmserver_exec, exec_type, file_type; type drmserver_exec, exec_type, file_type;
init_daemon_domain(drmserver) init_daemon_domain(drmserver)
......
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
/data/app-private/vmdl.*\.tmp u:object_r:apk_private_tmp_file:s0 /data/app-private/vmdl.*\.tmp u:object_r:apk_private_tmp_file:s0
/data/tombstones(/.*)? u:object_r:tombstone_data_file:s0 /data/tombstones(/.*)? u:object_r:tombstone_data_file:s0
/data/local/tmp(/.*)? u:object_r:shell_data_file:s0 /data/local/tmp(/.*)? u:object_r:shell_data_file:s0
/data/local/tmp/selinux(/.*)? u:object_r:tombstone_data_file:s0
# Misc data # Misc data
/data/misc/bluetoothd(/.*)? u:object_r:bluetoothd_data_file:s0 /data/misc/bluetoothd(/.*)? u:object_r:bluetoothd_data_file:s0
/data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0 /data/misc/bluetooth(/.*)? u:object_r:bluetooth_data_file:s0
......
# gpsd - GPS daemon # gpsd - GPS daemon
type gpsd, domain; type gpsd, domain;
permissive gpsd;
type gpsd_exec, exec_type, file_type; type gpsd_exec, exec_type, file_type;
init_daemon_domain(gpsd) init_daemon_domain(gpsd)
......
type hci_attach, domain; type hci_attach, domain;
permissive hci_attach;
type hci_attach_exec, exec_type, file_type; type hci_attach_exec, exec_type, file_type;
init_daemon_domain(hci_attach) init_daemon_domain(hci_attach)
......
# init switches to init domain (via init.rc). # init switches to init domain (via init.rc).
type init, domain; type init, domain;
permissive init;
# init is unconfined. # init is unconfined.
unconfined_domain(init) unconfined_domain(init)
tmpfs_domain(init) tmpfs_domain(init)
# installer daemon # installer daemon
type installd, domain; type installd, domain;
permissive installd;
type installd_exec, exec_type, file_type; type installd_exec, exec_type, file_type;
init_daemon_domain(installd) init_daemon_domain(installd)
......
# Life begins with the kernel. # Life begins with the kernel.
type kernel, domain; type kernel, domain;
permissive kernel;
# The kernel is unconfined. # The kernel is unconfined.
unconfined_domain(kernel) unconfined_domain(kernel)
type keystore, domain; type keystore, domain;
permissive keystore;
type keystore_exec, exec_type, file_type; type keystore_exec, exec_type, file_type;
# keystore daemon # keystore daemon
......
# mediaserver - multimedia daemon # mediaserver - multimedia daemon
type mediaserver, domain; type mediaserver, domain;
permissive mediaserver;
type mediaserver_exec, exec_type, file_type; type mediaserver_exec, exec_type, file_type;
typeattribute mediaserver mlstrustedsubject; typeattribute mediaserver mlstrustedsubject;
......
# vpn tunneling protocol manager # vpn tunneling protocol manager
type mtp, domain; type mtp, domain;
permissive mtp;
type mtp_exec, exec_type, file_type; type mtp_exec, exec_type, file_type;
init_daemon_domain(mtp) init_daemon_domain(mtp)
......
# network manager # network manager
type netd, domain; type netd, domain;
permissive netd;
type netd_exec, exec_type, file_type; type netd_exec, exec_type, file_type;
init_daemon_domain(netd) init_daemon_domain(netd)
......
# nfc subsystem # nfc subsystem
type nfc, domain; type nfc, domain;
permissive nfc;
app_domain(nfc) app_domain(nfc)
# NFC device access. # NFC device access.
......
type ping, domain; type ping, domain;
permissive ping;
type ping_exec, file_type; type ping_exec, file_type;
domain_auto_trans(shell, ping_exec, ping) domain_auto_trans(shell, ping_exec, ping)
......
# Point to Point Protocol daemon # Point to Point Protocol daemon
type ppp, domain; type ppp, domain;
permissive ppp;
type ppp_device, dev_type; type ppp_device, dev_type;
type ppp_exec, exec_type, file_type; type ppp_exec, exec_type, file_type;
type ppp_system_file, file_type; type ppp_system_file, file_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment