logd: clear DUMPABLE
am: 6a70ded7bf
Change-Id: I4bcfb53d9c4a13761c80a8f2070320c85b486b0b
This commit is contained in:
commit
d1687af980
1 changed files with 5 additions and 0 deletions
|
|
@ -106,6 +106,11 @@ static int drop_privs() {
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (prctl(PR_SET_DUMPABLE, 0) < 0) {
|
||||
android::prdebug("failed to clear PR_SET_DUMPABLE");
|
||||
return -1;
|
||||
}
|
||||
|
||||
gid_t groups[] = { AID_READPROC };
|
||||
ScopedMinijail j(minijail_new());
|
||||
minijail_set_supplementary_gids(j.get(), arraysize(groups), groups);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue