asan: global read access to /system/asan.options

am: 93318192a0

Change-Id: I08b56ad2714f121b3f88bc545148e2b893d91325
This commit is contained in:
Tri Vo 2018-10-08 11:38:15 -07:00 committed by android-build-merger
commit 393ada790e
4 changed files with 6 additions and 0 deletions

View file

@ -1565,6 +1565,7 @@
system_data_file))
(typeattributeset system_file_28_0
( system_file
system_asan_options_file
system_lib_file
system_linker_config_file
system_linker_exec

View file

@ -4,6 +4,7 @@
/data/asan/vendor/lib64(/.*)? u:object_r:system_file:s0
/data/asan/odm/lib(/.*)? u:object_r:system_file:s0
/data/asan/odm/lib64(/.*)? u:object_r:system_file:s0
/system/asan.options u:object_r:system_asan_options_file:s0
/system/bin/asan_extract u:object_r:asan_extract_exec:s0
/system/bin/asanwrapper u:object_r:asanwrapper_exec:s0
/system/bin/asan/app_process u:object_r:zygote_exec:s0

View file

@ -300,6 +300,8 @@ allow { domain -domain } vndservice_manager_type:service_manager { add find };
# Under ASAN, processes will try to read /data, as the sanitized libraries are there.
with_asan(`allow domain system_data_file:dir getattr;')
# Under ASAN, /system/asan.options needs to be globally accessible.
with_asan(`allow domain system_asan_options_file:file r_file_perms;')
###
### neverallow rules

View file

@ -132,6 +132,8 @@ type unlabeled, file_type;
# Default type for anything under /system.
type system_file, system_file_type, file_type;
# Default type for /system/asan.options
type system_asan_options_file, system_file_type, file_type;
# Default type for anything under /system/lib[64].
type system_lib_file, system_file_type, file_type;
# Default type for linker executable /system/bin/linker[64].