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

Commit a9f371a1 authored by Steven Moreland's avatar Steven Moreland
Browse files

drmserver: don't pidcon other processes

Bug: 382775095
Test: TH
Change-Id: I1a30ce53fc69c0117ef91e5d264e2d4600fb5b69
parent 3fc2c822
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;