am ca62a8b7
: allow coredump functionality
* commit 'ca62a8b72be35de3781c1f8f16600cfeca874ef5': allow coredump functionality
This commit is contained in:
commit
22b4eb7083
3 changed files with 9 additions and 0 deletions
|
@ -59,6 +59,10 @@ userdebug_or_eng(`
|
||||||
|
|
||||||
# allow "gdbserver --attach" to work for su.
|
# allow "gdbserver --attach" to work for su.
|
||||||
allow domain su:process sigchld;
|
allow domain su:process sigchld;
|
||||||
|
|
||||||
|
# Allow writing coredumps to /cores/*
|
||||||
|
allow domain coredump_file:file create_file_perms;
|
||||||
|
allow domain coredump_file:dir ra_dir_perms;
|
||||||
')
|
')
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
2
file.te
2
file.te
|
@ -45,6 +45,8 @@ type unlabeled, file_type;
|
||||||
type system_file, file_type;
|
type system_file, file_type;
|
||||||
# Type for /system/bin/logcat.
|
# Type for /system/bin/logcat.
|
||||||
type logcat_exec, exec_type, file_type;
|
type logcat_exec, exec_type, file_type;
|
||||||
|
# /cores for coredumps on userdebug / eng builds
|
||||||
|
type coredump_file, file_type;
|
||||||
# Default type for anything under /data.
|
# Default type for anything under /data.
|
||||||
type system_data_file, file_type, data_file_type;
|
type system_data_file, file_type, data_file_type;
|
||||||
# /data/.layout_version or other installd-created files that
|
# /data/.layout_version or other installd-created files that
|
||||||
|
|
|
@ -225,6 +225,9 @@
|
||||||
/data/misc/wifi/hostapd(/.*)? u:object_r:wpa_socket:s0
|
/data/misc/wifi/hostapd(/.*)? u:object_r:wpa_socket:s0
|
||||||
/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0
|
/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0
|
||||||
|
|
||||||
|
# coredump directory for userdebug/eng devices
|
||||||
|
/cores(/.*)? u:object_r:coredump_file:s0
|
||||||
|
|
||||||
# Wallpaper file for other users
|
# Wallpaper file for other users
|
||||||
/data/system/users/[0-9]+/wallpaper u:object_r:wallpaper_file:s0
|
/data/system/users/[0-9]+/wallpaper u:object_r:wallpaper_file:s0
|
||||||
#############################
|
#############################
|
||||||
|
|
Loading…
Reference in a new issue