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
|
2021-11-10 02:49:02 +01:00
|
|
|
-diced
|
2018-06-14 07:10:37 +02:00
|
|
|
-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
|
|
|
|
|
|
|
# TODO(b/186868271): Remove the keystore exception soon-ish (maybe by May 14, 2021?)
|
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
|
|
|
|
2018-09-13 20:07:14 +02:00
|
|
|
###
|
|
|
|
### neverallow assertions
|
|
|
|
###
|
|
|
|
|
|
|
|
# ptrace neverallow assertions are spread throughout the other policy
|
|
|
|
# files, so we avoid adding redundant assertions here
|
|
|
|
|
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
|
2021-11-10 02:49:02 +01:00
|
|
|
diced
|
2018-06-14 07:10:37 +02:00
|
|
|
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')
|
2018-09-13 20:07:14 +02:00
|
|
|
}:process { 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 *;
|
2020-10-16 16:29:55 +02: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;
|