Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da98133c authored by Steve Fung's avatar Steve Fung
Browse files

crash_reporter: Fix tmp directory location

It is unsafe to use /data/local/tmp.  Use our own temporary
directory under /data/misc/crash_reporter.

Bug: 23430484
Change-Id: I186ba6b146bd884064177a3bb29b18b8edcc0b62
parent 3b94cef1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ on boot

    # Create crash directories.
    mkdir /data/misc/crash_reporter 0700 root root
    mkdir /data/local/tmp/crash_reporter 0700 root root

service crash_reporter /system/bin/crash_reporter --init
    class late_start
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ static const char kCoreToMinidumpConverterPath[] = "/system/bin/core2md";

static const char kStatePrefix[] = "State:\t";

static const char kCoreTempFolder[] = "/data/local/tmp/crash_reporter";
static const char kCoreTempFolder[] = "/data/misc/crash_reporter/tmp";

// Define an otherwise invalid value that represents an unknown UID.
static const uid_t kUnknownUid = -1;