Merge "logd: Stop calling prctl(PR_SET_KEEPCAPS, 1)"
am: 7222199281
Change-Id: I6c2565f9d1efd11d378bd7e1b865aa0a7e46b9de
This commit is contained in:
commit
16d0c4617a
1 changed files with 0 additions and 5 deletions
|
@ -115,11 +115,6 @@ static int drop_privs(bool klogd, bool auditd) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (prctl(PR_SET_KEEPCAPS, 1) < 0) {
|
||||
android::prdebug("failed to set PR_SET_KEEPCAPS");
|
||||
if (!eng) return -1;
|
||||
}
|
||||
|
||||
std::unique_ptr<struct _cap_struct, int (*)(void*)> caps(cap_init(),
|
||||
cap_free);
|
||||
if (cap_clear(caps.get()) < 0) return -1;
|
||||
|
|
Loading…
Reference in a new issue