Skip to content
Snippets Groups Projects
Commit 35e09523 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by android-build-merger
Browse files

Merge "Move domain_deprecated into private policy" into oc-dev

am: 02a101a6

Change-Id: I0140009cfbf316489db4994b414ac079776ead21
parents 270e70be 02a101a6
No related branches found
No related tags found
No related merge requests found
# Temporary attribute used for migrating permissions out of domain.
# Motivation: Domain is overly permissive. Start removing permissions
# from domain and assign them to the domain_deprecated attribute.
# Domain_deprecated and domain can initially be assigned to all
# domains. The goal is to not assign domain_deprecated to new domains
# and to start removing domain_deprecated where it's not required or
# reassigning the appropriate permissions to the inheriting domain
# when necessary.
attribute domain_deprecated;
typeattribute clatd coredomain;
typeattribute clatd domain_deprecated;
typeattribute dex2oat coredomain;
typeattribute dex2oat domain_deprecated;
typeattribute dhcp coredomain;
typeattribute dhcp domain_deprecated;
init_daemon_domain(dhcp)
type_transition dhcp system_data_file:{ dir file } dhcp_data_file;
......@@ -79,7 +79,6 @@ auditallow {
-fingerprintd
-installd
-keystore
-rild
-surfaceflinger
-system_server
-update_engine
......@@ -193,7 +192,6 @@ auditallow {
domain_deprecated
-fsck
-fsck_untrusted
-rild
-sdcardd
-system_server
-update_engine
......@@ -203,7 +201,6 @@ auditallow {
domain_deprecated
-fsck
-fsck_untrusted
-rild
-system_server
-vold
} proc:lnk_file { open ioctl lock }; # getattr read granted in domain
......@@ -212,7 +209,6 @@ auditallow {
-fingerprintd
-healthd
-netd
-rild
-system_app
-surfaceflinger
-system_server
......@@ -225,7 +221,6 @@ auditallow {
-fingerprintd
-healthd
-netd
-rild
-system_app
-surfaceflinger
-system_server
......@@ -238,7 +233,6 @@ auditallow {
-fingerprintd
-healthd
-netd
-rild
-system_app
-surfaceflinger
-system_server
......@@ -256,7 +250,6 @@ auditallow {
-installd
-keystore
-netd
-rild
-surfaceflinger
-system_server
-zygote
......@@ -271,7 +264,6 @@ auditallow {
-installd
-keystore
-netd
-rild
-surfaceflinger
-system_server
-zygote
......
typeattribute dumpstate coredomain;
typeattribute dumpstate domain_deprecated;
init_daemon_domain(dumpstate)
......
typeattribute fingerprintd coredomain;
typeattribute fingerprintd domain_deprecated;
init_daemon_domain(fingerprintd)
typeattribute fsck coredomain;
typeattribute fsck domain_deprecated;
init_daemon_domain(fsck)
typeattribute fsck_untrusted coredomain;
typeattribute fsck_untrusted domain_deprecated;
typeattribute installd coredomain;
typeattribute installd domain_deprecated;
init_daemon_domain(installd)
......
typeattribute keystore coredomain;
typeattribute keystore domain_deprecated;
init_daemon_domain(keystore)
......
typeattribute mtp coredomain;
typeattribute mtp domain_deprecated;
init_daemon_domain(mtp)
typeattribute netd coredomain;
typeattribute netd domain_deprecated;
init_daemon_domain(netd)
......
userdebug_or_eng(`
typeattribute perfprofd coredomain;
typeattribute perfprofd domain_deprecated;
init_daemon_domain(perfprofd)
')
typeattribute ppp coredomain;
typeattribute ppp domain_deprecated;
domain_auto_trans(mtp, ppp_exec, ppp)
typeattribute radio coredomain;
typeattribute radio domain_deprecated;
app_domain(radio)
......
typeattribute recovery coredomain;
typeattribute recovery domain_deprecated;
typeattribute runas coredomain;
typeattribute runas domain_deprecated;
# ndk-gdb invokes adb shell run-as.
domain_auto_trans(shell, runas_exec, runas)
typeattribute sdcardd coredomain;
typeattribute sdcardd domain_deprecated;
type_transition sdcardd system_data_file:{ dir file } media_rw_data_file;
typeattribute shared_relro coredomain;
typeattribute shared_relro domain_deprecated;
# 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.
......
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