2017-03-23 22:27:32 +01:00
|
|
|
typeattribute crash_dump coredomain;
|
2018-06-14 07:10:37 +02:00
|
|
|
|
|
|
|
allow crash_dump {
|
|
|
|
domain
|
|
|
|
-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 };
|
2018-08-08 01:03:47 +02:00
|
|
|
userdebug_or_eng(`
|
|
|
|
allow crash_dump { llkd logd }:process { ptrace signal sigchld sigstop sigkill };
|
|
|
|
')
|
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 {
|
|
|
|
bpfloader
|
|
|
|
init
|
|
|
|
kernel
|
|
|
|
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
|
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;
|