Skip to content
Snippets Groups Projects
Commit 68e6109d authored by Alex Klyubin's avatar Alex Klyubin Committed by android-build-merger
Browse files

Vendor domains must not use Binder am: f5446eb1 am: 2fe065d7

am: 49ce4394

Change-Id: I1b38d903e61188594d0de80be479e7d9e045fb26
parents 463f9a49 49ce4394
Branches
No related tags found
No related merge requests found
Showing with 32 additions and 15 deletions
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
### A domain for further sandboxing privileged apps. ### A domain for further sandboxing privileged apps.
### ###
typeattribute priv_app coredomain;
app_domain(priv_app) app_domain(priv_app)
# Access the network. # Access the network.
... ...
......
typeattribute profman coredomain;
# type_transition must be private policy the domain_trans rules could stay typeattribute racoon coredomain;
# public, but conceptually should go with this
init_daemon_domain(racoon) init_daemon_domain(racoon)
typeattribute radio coredomain;
app_domain(radio) app_domain(radio)
read_runtime_log_tags(radio) read_runtime_log_tags(radio)
typeattribute recovery coredomain;
# type_transition must be private policy the domain_trans rules could stay typeattribute recovery_persist coredomain;
# public, but conceptually should go with this
init_daemon_domain(recovery_persist) init_daemon_domain(recovery_persist)
# recovery_persist is not allowed to write anywhere other than recovery_data_file # recovery_persist is not allowed to write anywhere other than recovery_data_file
... ...
......
# type_transition must be private policy the domain_trans rules could stay typeattribute recovery_refresh coredomain;
# public, but conceptually should go with this
init_daemon_domain(recovery_refresh) init_daemon_domain(recovery_refresh)
# recovery_refresh is not allowed to write anywhere # recovery_refresh is not allowed to write anywhere
... ...
......
# type_transition must be private policy the domain_trans rules could stay typeattribute runas coredomain;
# public, but conceptually should go with this
# ndk-gdb invokes adb shell run-as. # ndk-gdb invokes adb shell run-as.
domain_auto_trans(shell, runas_exec, runas) domain_auto_trans(shell, runas_exec, runas)
# type_transition must be private policy the domain_trans rules could stay typeattribute sdcardd coredomain;
# public, but conceptually should go with this
type_transition sdcardd system_data_file:{ dir file } media_rw_data_file; type_transition sdcardd system_data_file:{ dir file } media_rw_data_file;
typeattribute sensord coredomain;
init_daemon_domain(sensord) init_daemon_domain(sensord)
# type_transition must be private policy the domain_trans rules could stay typeattribute servicemanager coredomain;
# public, but conceptually should go with this
init_daemon_domain(servicemanager) init_daemon_domain(servicemanager)
read_runtime_log_tags(servicemanager) read_runtime_log_tags(servicemanager)
typeattribute sgdisk coredomain;
typeattribute shared_relro coredomain;
# The shared relro process is a Java program forked from the zygote, so it # The shared relro process is a Java program forked from the zygote, so it
# inherits from app to get basic permissions it needs to run. # inherits from app to get basic permissions it needs to run.
app_domain(shared_relro) app_domain(shared_relro)
typeattribute shell coredomain;
# systrace support - allow atrace to run # systrace support - allow atrace to run
allow shell debugfs_tracing:dir r_dir_perms; allow shell debugfs_tracing:dir r_dir_perms;
allow shell debugfs_tracing:file r_file_perms; allow shell debugfs_tracing:file r_file_perms;
... ...
......
typeattribute slideshow coredomain;
# storaged daemon # storaged daemon
type storaged, domain, mlstrustedsubject; type storaged, domain, coredomain, mlstrustedsubject;
type storaged_exec, exec_type, file_type; type storaged_exec, exec_type, file_type;
init_daemon_domain(storaged) init_daemon_domain(storaged)
... ...
......
# surfaceflinger - display compositor service # surfaceflinger - display compositor service
typeattribute surfaceflinger coredomain;
type surfaceflinger_exec, exec_type, file_type; type surfaceflinger_exec, exec_type, file_type;
init_daemon_domain(surfaceflinger) init_daemon_domain(surfaceflinger)
... ...
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
### server. ### server.
### ###
typeattribute system_app coredomain;
typeattribute system_app domain_deprecated; typeattribute system_app domain_deprecated;
app_domain(system_app) app_domain(system_app)
... ...
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# Most of the framework services run in this process. # Most of the framework services run in this process.
# #
typeattribute system_server coredomain;
typeattribute system_server domain_deprecated; typeattribute system_server domain_deprecated;
typeattribute system_server mlstrustedsubject; typeattribute system_server mlstrustedsubject;
... ...
......
# type_transition must be private policy the domain_trans rules could stay typeattribute tee coredomain;
# public, but conceptually should go with this
init_daemon_domain(tee) init_daemon_domain(tee)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment