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

Commit 72221992 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "logd: Stop calling prctl(PR_SET_KEEPCAPS, 1)"

parents 9c1d7598 499f3a2a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;