Skip to content
Snippets Groups Projects
Commit 7c34e83f authored by Jeff Vander Stoep's avatar Jeff Vander Stoep
Browse files

Move domain_deprecated into private policy

This attribute is being actively removed from policy. Since
attributes are not being versioned, partners must not be able to
access and use this attribute. Move it from private and verify in
the logs that rild and tee are not using these permissions.

Bug: 38316109
Test: build and boot Marlin
Test: Verify that rild and tee are not being granted any of these
      permissions.
Merged-In: I31beeb5bdf3885195310b086c1af3432dc6a349b
Change-Id: I31beeb5bdf3885195310b086c1af3432dc6a349b
(cherry picked from commit 76aab82c)
parent 83f8cde4
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;
...@@ -37,7 +37,6 @@ auditallow { ...@@ -37,7 +37,6 @@ auditallow {
domain_deprecated domain_deprecated
-fsck -fsck
-fsck_untrusted -fsck_untrusted
-rild
-sdcardd -sdcardd
-system_server -system_server
-update_engine -update_engine
...@@ -47,7 +46,6 @@ auditallow { ...@@ -47,7 +46,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
...@@ -56,7 +54,6 @@ auditallow { ...@@ -56,7 +54,6 @@ auditallow {
-fingerprintd -fingerprintd
-healthd -healthd
-netd -netd
-rild
-recovery -recovery
-system_app -system_app
-surfaceflinger -surfaceflinger
...@@ -70,7 +67,6 @@ auditallow { ...@@ -70,7 +67,6 @@ auditallow {
-fingerprintd -fingerprintd
-healthd -healthd
-netd -netd
-rild
-recovery -recovery
-system_app -system_app
-surfaceflinger -surfaceflinger
...@@ -84,7 +80,6 @@ auditallow { ...@@ -84,7 +80,6 @@ auditallow {
-fingerprintd -fingerprintd
-healthd -healthd
-netd -netd
-rild
-recovery -recovery
-system_app -system_app
-surfaceflinger -surfaceflinger
......
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