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

Commit 983a404e authored by Ben Fennema's avatar Ben Fennema Committed by android-build-merger
Browse files

Merge "init: fix type of 2nd argument passed to prctl" am: 1b506c54 am: f01f4e9d am: ec7afe31

am: 2953e1af

Change-Id: I09b2790e3800bcad1c8639bc13e16a7c066b5477
parents 29c3e7eb 2953e1af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -225,8 +225,8 @@ void Service::SetProcessAttributes() {
    if (capabilities_.any() && uid_) {
        // If Android is running in a container, some securebits might already
        // be locked, so don't change those.
        int64_t securebits = prctl(PR_GET_SECUREBITS);
        if (securebits == -1) {
        unsigned long securebits = prctl(PR_GET_SECUREBITS);
        if (securebits == -1UL) {
            PLOG(FATAL) << "prctl(PR_GET_SECUREBITS) failed for " << name_;
        }
        securebits |= SECBIT_KEEP_CAPS | SECBIT_KEEP_CAPS_LOCKED;