Allow composd to pass some system properties to CompOS
Bug: 231579544 Test: see allowlisted system properties in the VM Change-Id: Idb263087639e4677e437ac2fcd2726ee71547f48
This commit is contained in:
parent
ce2b6da673
commit
3423bc4bcb
4 changed files with 10 additions and 2 deletions
|
@ -25,6 +25,10 @@ dontaudit compos self:dir write;
|
|||
# See b/35323867#comment3
|
||||
dontaudit compos self:global_capability_class_set dac_override;
|
||||
|
||||
# Allow settings system properties that ART expects.
|
||||
set_prop(compos, dalvik_config_prop)
|
||||
set_prop(compos, device_config_runtime_native_boot_prop)
|
||||
|
||||
# Allow running odrefresh in its own domain
|
||||
domain_auto_trans(compos, odrefresh_exec, odrefresh)
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ system_restricted_prop(boot_status_prop)
|
|||
# Declare ART properties for CompOS
|
||||
system_public_prop(dalvik_config_prop)
|
||||
system_restricted_prop(device_config_runtime_native_prop)
|
||||
system_restricted_prop(device_config_runtime_native_boot_prop)
|
||||
|
||||
# Don't audit legacy ctl. property handling. We only want the newer permission check to appear
|
||||
# in the audit log
|
||||
|
|
|
@ -154,7 +154,9 @@ ro.vndk.version u:object_r:build_prop:s0 exact string
|
|||
heapprofd.enable u:object_r:heapprofd_prop:s0 exact bool
|
||||
|
||||
# ART properties for CompOS
|
||||
dalvik.vm. u:object_r:dalvik_config_prop:s0 prefix
|
||||
persist.device_config.runtime_native. u:object_r:device_config_runtime_native_prop:s0 prefix
|
||||
dalvik.vm. u:object_r:dalvik_config_prop:s0 prefix
|
||||
ro.dalvik.vm. u:object_r:dalvik_config_prop:s0 prefix
|
||||
persist.device_config.runtime_native. u:object_r:device_config_runtime_native_prop:s0 prefix
|
||||
persist.device_config.runtime_native_boot. u:object_r:device_config_runtime_native_boot_prop:s0 prefix
|
||||
|
||||
apexd.payload_metadata.path u:object_r:apexd_payload_metadata_prop:s0 exact string
|
||||
|
|
|
@ -31,6 +31,7 @@ allow composd compos_fd_server:process signal;
|
|||
|
||||
# Read ART's properties
|
||||
get_prop(composd, dalvik_config_prop)
|
||||
get_prop(composd, device_config_runtime_native_boot_prop)
|
||||
|
||||
# We never create any artifact files directly
|
||||
neverallow composd apex_art_data_file:file ~unlink;
|
||||
|
|
Loading…
Reference in a new issue