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
This commit is contained in:
Nick Kralevich 2014-11-04 11:17:20 -08:00 committed by Iliyan Malchev
parent af5de97b8a
commit a94282c659
1 changed files with 1 additions and 0 deletions

View File

@ -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...";