Revert "Make default_prop only readable from coredomain"
This reverts commit 082ced1951
.
Reason for revert: b/176784961
Change-Id: Ia85667216d63084e9e23aefe1d3bfd7942d51a2a
This commit is contained in:
parent
082ced1951
commit
32fbfbc016
4 changed files with 6 additions and 10 deletions
|
@ -24,9 +24,6 @@ get_prop(coredomain, vold_config_prop)
|
|||
get_prop(coredomain, vts_status_prop)
|
||||
get_prop(coredomain, zygote_wrap_prop)
|
||||
|
||||
# TODO(b/170590987): remove this after cleaning up default_prop
|
||||
get_prop(coredomain, default_prop)
|
||||
|
||||
full_treble_only(`
|
||||
neverallow {
|
||||
coredomain
|
||||
|
|
|
@ -87,6 +87,7 @@ neverallow * {
|
|||
-dalvik_prop
|
||||
-debuggerd_prop
|
||||
-debug_prop
|
||||
-default_prop
|
||||
-dhcp_prop
|
||||
-dumpstate_prop
|
||||
-fingerprint_prop
|
||||
|
@ -537,10 +538,6 @@ neverallow {
|
|||
-appdomain
|
||||
} sqlite_log_prop:file no_rw_file_perms;
|
||||
|
||||
neverallow {
|
||||
-init
|
||||
} default_prop:property_service set;
|
||||
|
||||
# Only one of system_property_type and vendor_property_type can be assigned.
|
||||
# Property types having both attributes won't be accessible from anywhere.
|
||||
neverallow domain system_and_vendor_property_type:{file property_service} *;
|
||||
|
|
|
@ -549,10 +549,12 @@ neverallow * hidl_base_hwservice:hwservice_manager find;
|
|||
|
||||
# Require that domains explicitly label unknown properties, and do not allow
|
||||
# anyone but init to modify unknown properties.
|
||||
neverallow { domain -init -vendor_init } default_prop:property_service set;
|
||||
neverallow { domain -init -vendor_init } mmc_prop:property_service set;
|
||||
neverallow { domain -init -vendor_init } vndk_prop:property_service set;
|
||||
|
||||
compatible_property_only(`
|
||||
neverallow { domain -init } default_prop:property_service set;
|
||||
neverallow { domain -init } mmc_prop:property_service set;
|
||||
neverallow { domain -init -vendor_init } exported_default_prop:property_service set;
|
||||
neverallow { domain -init } exported_secure_prop:property_service set;
|
||||
|
|
|
@ -93,6 +93,7 @@ compatible_property_only(`
|
|||
system_restricted_prop(cppreopt_prop)
|
||||
system_restricted_prop(dalvik_prop)
|
||||
system_restricted_prop(debuggerd_prop)
|
||||
system_restricted_prop(default_prop)
|
||||
system_restricted_prop(device_logging_prop)
|
||||
system_restricted_prop(dhcp_prop)
|
||||
system_restricted_prop(dumpstate_prop)
|
||||
|
@ -201,9 +202,6 @@ system_public_prop(wifi_log_prop)
|
|||
system_public_prop(wifi_prop)
|
||||
system_public_prop(zram_control_prop)
|
||||
|
||||
# Properties which don't have entries on property_contexts
|
||||
system_internal_prop(default_prop)
|
||||
|
||||
# Properties used in default HAL implementations
|
||||
vendor_internal_prop(rebootescrow_hal_prop)
|
||||
|
||||
|
@ -252,6 +250,7 @@ not_compatible_property(`
|
|||
system_public_prop(cppreopt_prop)
|
||||
system_public_prop(dalvik_prop)
|
||||
system_public_prop(debuggerd_prop)
|
||||
system_public_prop(default_prop)
|
||||
system_public_prop(device_logging_prop)
|
||||
system_public_prop(dhcp_prop)
|
||||
system_public_prop(dumpstate_prop)
|
||||
|
@ -296,6 +295,7 @@ typeattribute cppreopt_prop core_property_type;
|
|||
typeattribute dalvik_prop core_property_type;
|
||||
typeattribute debuggerd_prop core_property_type;
|
||||
typeattribute debug_prop core_property_type;
|
||||
typeattribute default_prop core_property_type;
|
||||
typeattribute dhcp_prop core_property_type;
|
||||
typeattribute dumpstate_prop core_property_type;
|
||||
typeattribute logd_prop core_property_type;
|
||||
|
|
Loading…
Reference in a new issue