From ced049c5e8b9e4e2620a8ed7b7ab4d26f3d0441d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 22 May 2017 10:58:27 +0200 Subject: [PATCH] IOS/ES: Prevent usage of ES_DiVerifyWithView for the PPC ES_DiVerifyWithView (0x3b) is another private ioctlv that can only be used from DI. Calling it from anywhere else returns -1017. --- Source/Core/Core/IOS/ES/ES.cpp | 2 +- Source/Core/Core/IOS/ES/ES.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IOS/ES/ES.cpp b/Source/Core/Core/IOS/ES/ES.cpp index 6fcf884578..28635605c0 100644 --- a/Source/Core/Core/IOS/ES/ES.cpp +++ b/Source/Core/Core/IOS/ES/ES.cpp @@ -417,6 +417,7 @@ IPCCommandResult ES::IOCtlV(const IOCtlVRequest& request) case IOCTL_ES_SETUID: return SetUID(context->uid, request); case IOCTL_ES_DIVERIFY: + case IOCTL_ES_DIVERIFY_WITH_VIEW: return DIVerify(request); case IOCTL_ES_GETOWNEDTITLECNT: @@ -512,7 +513,6 @@ IPCCommandResult ES::IOCtlV(const IOCtlVRequest& request) return GetTicketFromView(request); case IOCTL_ES_VERIFYSIGN: - case IOCTL_ES_UNKNOWN_3B: case IOCTL_ES_UNKNOWN_3C: case IOCTL_ES_UNKNOWN_3D: case IOCTL_ES_UNKNOWN_3E: diff --git a/Source/Core/Core/IOS/ES/ES.h b/Source/Core/Core/IOS/ES/ES.h index a55297e760..4cce356fc3 100644 --- a/Source/Core/Core/IOS/ES/ES.h +++ b/Source/Core/Core/IOS/ES/ES.h @@ -181,7 +181,7 @@ private: IOCTL_ES_DELETESHAREDCONTENT = 0x38, IOCTL_ES_DIGETTMDSIZE = 0x39, IOCTL_ES_DIGETTMD = 0x3A, - IOCTL_ES_UNKNOWN_3B = 0x3B, + IOCTL_ES_DIVERIFY_WITH_VIEW = 0x3B, IOCTL_ES_UNKNOWN_3C = 0x3C, IOCTL_ES_UNKNOWN_3D = 0x3D, IOCTL_ES_UNKNOWN_3E = 0x3E,