llkd: clear PR_SET_DUMPABLE
Test: compile Bug: 33808187 Bug: 111910505 Bug: 80502612 Change-Id: I21ed937d79b3eb81b67ad145664ea82413fb65fd
This commit is contained in:
parent
abf8ff7e81
commit
4832a8bd76
2 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue