Skip to content

Commit

Permalink
llkd: clear PR_SET_DUMPABLE
Browse files Browse the repository at this point in the history
Test: compile
Bug: 33808187
Bug: 111910505
Bug: 80502612
Change-Id: I21ed937d79b3eb81b67ad145664ea82413fb65fd
  • Loading branch information
Mark Salyzyn committed Aug 28, 2018
1 parent abf8ff7 commit 4832a8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llkd/libllkd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 3 additions & 0 deletions llkd/llkd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "llkd.h"

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

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

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

LOG(INFO) << "started";

bool enabled = llkInit();
Expand Down

0 comments on commit 4832a8b

Please sign in to comment.