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

Commit e6ef89c9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "drmserver: don't pidcon other processes" into main

parents 099ea2fc a9f371a1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -70,6 +70,9 @@ bool DrmManagerService::selinuxIsProtectedCallAllowed(pid_t spid, const char* ss
    if (ssid == NULL) {
        android_errorWriteLog(0x534e4554, "121035042");

        LOG_ALWAYS_FATAL_IF(nullptr != IPCThreadState::self()->getServingStackPointer(),
            "Missing SID from other process");

        if (getpidcon(spid, &sctx) != 0) {
            ALOGE("SELinux: getpidcon(pid=%d) failed.\n", spid);
            return false;