allow coredump functionality

Change-Id: I7993698ac96f21db0039681275280dbd43ff61ba
This commit is contained in:
Nick Kralevich 2014-10-31 12:40:12 -07:00 committed by Iliyan Malchev
parent f7ccfd003c
commit d7e004ebf9
3 changed files with 9 additions and 0 deletions

View file

@ -59,6 +59,10 @@ userdebug_or_eng(`
# allow "gdbserver --attach" to work for su.
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;
')
###

View file

@ -43,6 +43,8 @@ type usbfs, fs_type;
type unlabeled, file_type;
# Default type for anything under /system.
type system_file, file_type;
# /cores for coredumps on userdebug / eng builds
type coredump_file, file_type;
# Default type for anything under /data.
type system_data_file, file_type, data_file_type;
# /data/.layout_version or other installd-created files that

View file

@ -218,6 +218,9 @@
/data/misc/wifi/hostapd(/.*)? u:object_r:wpa_socket: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
/data/system/users/[0-9]+/wallpaper u:object_r:wallpaper_file:s0
#############################