From a94282c6598ed91e260b7bdf199ff3db7d6c5a92 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Tue, 4 Nov 2014 11:17:20 -0800 Subject: [PATCH] Mount tmpfs on /cores Proper selinux labeling support for files on rootfs was never completely implemented. Instead of putting coredump files on rootfs, put them on tmpfs instead. See: http://www.mail-archive.com/seandroid-list@tycho.nsa.gov/msg01815.html Bug: 18227650 Change-Id: I2eeabee4fe1a14bfbf990a4a518d538d6b4b6e87 --- envsetup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/envsetup.sh b/envsetup.sh index ab3419656..d80e95c39 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -911,6 +911,7 @@ function coredump_setup() sleep 1; adb wait-for-device; adb shell mkdir -p /cores; + adb shell mount -t tmpfs tmpfs /cores; adb shell chmod 0777 /cores; echo "Granting SELinux permission to dump in /cores..."; -- 2.11.0