Skip to content
Snippets Groups Projects
Commit 02a101a6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 125a5a0c 76aab82c
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 coredomain;
typeattribute clatd domain_deprecated;
typeattribute dex2oat coredomain; typeattribute dex2oat coredomain;
typeattribute dex2oat domain_deprecated;
typeattribute dhcp coredomain; typeattribute dhcp coredomain;
typeattribute dhcp domain_deprecated;
init_daemon_domain(dhcp) init_daemon_domain(dhcp)
type_transition dhcp system_data_file:{ dir file } dhcp_data_file; type_transition dhcp system_data_file:{ dir file } dhcp_data_file;
...@@ -79,7 +79,6 @@ auditallow { ...@@ -79,7 +79,6 @@ auditallow {
-fingerprintd -fingerprintd
-installd -installd
-keystore -keystore
-rild
-surfaceflinger -surfaceflinger
-system_server -system_server
-update_engine -update_engine
...@@ -193,7 +192,6 @@ auditallow { ...@@ -193,7 +192,6 @@ auditallow {
domain_deprecated domain_deprecated
-fsck -fsck
-fsck_untrusted -fsck_untrusted
-rild
-sdcardd -sdcardd
-system_server -system_server
-update_engine -update_engine
...@@ -203,7 +201,6 @@ auditallow { ...@@ -203,7 +201,6 @@ auditallow {
domain_deprecated domain_deprecated
-fsck -fsck
-fsck_untrusted -fsck_untrusted
-rild
-system_server -system_server
-vold -vold
} proc:lnk_file { open ioctl lock }; # getattr read granted in domain } proc:lnk_file { open ioctl lock }; # getattr read granted in domain
...@@ -213,7 +210,6 @@ auditallow { ...@@ -213,7 +210,6 @@ auditallow {
-fingerprintd -fingerprintd
-healthd -healthd
-netd -netd
-rild
-system_app -system_app
-surfaceflinger -surfaceflinger
-system_server -system_server
...@@ -227,7 +223,6 @@ auditallow { ...@@ -227,7 +223,6 @@ auditallow {
-fingerprintd -fingerprintd
-healthd -healthd
-netd -netd
-rild
-system_app -system_app
-surfaceflinger -surfaceflinger
-system_server -system_server
...@@ -241,7 +236,6 @@ auditallow { ...@@ -241,7 +236,6 @@ auditallow {
-fingerprintd -fingerprintd
-healthd -healthd
-netd -netd
-rild
-system_app -system_app
-surfaceflinger -surfaceflinger
-system_server -system_server
...@@ -259,7 +253,6 @@ auditallow { ...@@ -259,7 +253,6 @@ auditallow {
-installd -installd
-keystore -keystore
-netd -netd
-rild
-surfaceflinger -surfaceflinger
-system_server -system_server
-zygote -zygote
...@@ -274,7 +267,6 @@ auditallow { ...@@ -274,7 +267,6 @@ auditallow {
-installd -installd
-keystore -keystore
-netd -netd
-rild
-surfaceflinger -surfaceflinger
-system_server -system_server
-zygote -zygote
......
typeattribute dumpstate coredomain; typeattribute dumpstate coredomain;
typeattribute dumpstate domain_deprecated;
init_daemon_domain(dumpstate) init_daemon_domain(dumpstate)
......
typeattribute fingerprintd coredomain; typeattribute fingerprintd coredomain;
typeattribute fingerprintd domain_deprecated;
init_daemon_domain(fingerprintd) init_daemon_domain(fingerprintd)
typeattribute fsck coredomain; typeattribute fsck coredomain;
typeattribute fsck domain_deprecated;
init_daemon_domain(fsck) init_daemon_domain(fsck)
typeattribute fsck_untrusted coredomain; typeattribute fsck_untrusted coredomain;
typeattribute fsck_untrusted domain_deprecated;
typeattribute installd coredomain; typeattribute installd coredomain;
typeattribute installd domain_deprecated;
init_daemon_domain(installd) init_daemon_domain(installd)
......
typeattribute keystore coredomain; typeattribute keystore coredomain;
typeattribute keystore domain_deprecated;
init_daemon_domain(keystore) init_daemon_domain(keystore)
......
typeattribute mtp coredomain; typeattribute mtp coredomain;
typeattribute mtp domain_deprecated;
init_daemon_domain(mtp) init_daemon_domain(mtp)
typeattribute netd coredomain; typeattribute netd coredomain;
typeattribute netd domain_deprecated;
init_daemon_domain(netd) init_daemon_domain(netd)
......
userdebug_or_eng(` userdebug_or_eng(`
typeattribute perfprofd coredomain; typeattribute perfprofd coredomain;
typeattribute perfprofd domain_deprecated;
init_daemon_domain(perfprofd) init_daemon_domain(perfprofd)
') ')
typeattribute ppp coredomain; typeattribute ppp coredomain;
typeattribute ppp domain_deprecated;
domain_auto_trans(mtp, ppp_exec, ppp) domain_auto_trans(mtp, ppp_exec, ppp)
typeattribute radio coredomain; typeattribute radio coredomain;
typeattribute radio domain_deprecated;
app_domain(radio) app_domain(radio)
......
typeattribute recovery coredomain; typeattribute recovery coredomain;
typeattribute recovery domain_deprecated;
typeattribute runas coredomain; typeattribute runas coredomain;
typeattribute runas domain_deprecated;
# 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)
typeattribute sdcardd coredomain; typeattribute sdcardd coredomain;
typeattribute sdcardd domain_deprecated;
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 shared_relro coredomain; typeattribute shared_relro coredomain;
typeattribute shared_relro domain_deprecated;
# 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.
......
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