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

Commit 4832a8bd authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

llkd: clear PR_SET_DUMPABLE

Test: compile
Bug: 33808187
Bug: 111910505
Bug: 80502612
Change-Id: I21ed937d79b3eb81b67ad145664ea82413fb65fd
parent abf8ff7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -738,6 +738,8 @@ void llkLogConfig(void) {
}

void* llkThread(void* obj) {
    prctl(PR_SET_DUMPABLE, 0);

    LOG(INFO) << "started";

    std::string name = std::to_string(::gettid());
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include "llkd.h"

#include <sched.h>
#include <sys/prctl.h>
#include <unistd.h>

#include <chrono>
@@ -26,6 +27,8 @@
using namespace std::chrono;

int main(int, char**) {
    prctl(PR_SET_DUMPABLE, 0);

    LOG(INFO) << "started";

    bool enabled = llkInit();