2017-03-23 22:27:32 +01:00
|
|
|
typeattribute crash_dump coredomain;
|
2018-06-14 07:10:37 +02:00
|
|
|
|
2019-03-14 04:50:25 +01:00
|
|
|
# Crash dump does not need to access devices passed across exec().
|
2019-03-18 18:29:27 +01:00
|
|
|
dontaudit crash_dump { devpts dev_type }:chr_file { read write };
|
2019-02-15 19:29:38 +01:00
|
|
|
|
2018-06-14 07:10:37 +02:00
|
|
|
allow crash_dump {
|
|
|
|
domain
|
2018-08-17 09:35:42 +02:00
|
|
|
-apexd
|
2018-06-14 07:10:37 +02:00
|
|
|
-bpfloader
|
|
|
|
-crash_dump
|
|
|
|
-init
|
|
|
|
-kernel
|
|
|
|
-keystore
|
2018-08-08 01:03:47 +02:00
|
|
|
-llkd
|
2018-06-14 07:10:37 +02:00
|
|
|
-logd
|
|
|
|
-ueventd
|
|
|
|
-vendor_init
|
|
|
|
-vold
|
|
|
|
}:process { ptrace signal sigchld sigstop sigkill };
|
2021-04-30 20:08:07 +02:00
|
|
|
|
2018-08-08 01:03:47 +02:00
|
|
|
userdebug_or_eng(`
|
2021-04-30 20:08:07 +02:00
|
|
|
allow crash_dump {
|
|
|
|
apexd
|
|
|
|
keystore
|
|
|
|
llkd
|
|
|
|
logd
|
|
|
|
vold
|
|
|
|
}:process { ptrace signal sigchld sigstop sigkill };
|
2018-08-08 01:03:47 +02:00
|
|
|
')
|
2018-06-14 07:10:37 +02:00
|
|
|
|
2023-02-02 15:24:45 +01:00
|
|
|
# Read ART APEX data directory
|
|
|
|
allow crash_dump apex_art_data_file:dir { getattr search };
|
|
|
|
allow crash_dump apex_art_data_file:file r_file_perms;
|
|
|
|
|
2023-12-06 02:42:29 +01:00
|
|
|
# Allow crash dump to read bootstrap libraries
|
|
|
|
allow crash_dump system_bootstrap_lib_file:dir { getattr search };
|
|
|
|
allow crash_dump system_bootstrap_lib_file:file r_file_perms;
|
|
|
|
|
2023-09-05 10:51:38 +02:00
|
|
|
# Read Vendor APEX directories
|
|
|
|
allow crash_dump vendor_apex_metadata_file:dir { getattr search };
|
|
|
|
|
2018-09-13 20:07:14 +02:00
|
|
|
###
|
|
|
|
### neverallow assertions
|
|
|
|
###
|
|
|
|
|
2023-02-02 15:24:45 +01:00
|
|
|
# sigchld not explicitly forbidden since it's part of the
|
|
|
|
# domain-transition-on-exec macros, and is by itself not sensitive
|
2018-06-14 07:10:37 +02:00
|
|
|
neverallow crash_dump {
|
2019-03-05 17:36:36 +01:00
|
|
|
apexd
|
|
|
|
userdebug_or_eng(`-apexd')
|
2018-06-14 07:10:37 +02:00
|
|
|
bpfloader
|
|
|
|
init
|
|
|
|
kernel
|
|
|
|
keystore
|
2021-04-30 20:08:07 +02:00
|
|
|
userdebug_or_eng(`-keystore')
|
2018-08-08 01:03:47 +02:00
|
|
|
llkd
|
|
|
|
userdebug_or_eng(`-llkd')
|
2018-06-14 07:10:37 +02:00
|
|
|
logd
|
|
|
|
userdebug_or_eng(`-logd')
|
|
|
|
ueventd
|
|
|
|
vendor_init
|
|
|
|
vold
|
2019-02-05 22:39:02 +01:00
|
|
|
userdebug_or_eng(`-vold')
|
2023-02-02 15:24:45 +01:00
|
|
|
}:process { ptrace signal sigstop sigkill };
|
2018-09-03 18:27:54 +02:00
|
|
|
|
|
|
|
neverallow crash_dump self:process ptrace;
|
2019-02-15 19:29:38 +01:00
|
|
|
neverallow crash_dump gpu_device:chr_file *;
|