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.
This commit is contained in:
Léo Lam 2017-05-22 10:58:27 +02:00
parent 98b6446249
commit ced049c5e8
2 changed files with 2 additions and 2 deletions

View File

@ -417,6 +417,7 @@ IPCCommandResult ES::IOCtlV(const IOCtlVRequest& request)
case IOCTL_ES_SETUID: case IOCTL_ES_SETUID:
return SetUID(context->uid, request); return SetUID(context->uid, request);
case IOCTL_ES_DIVERIFY: case IOCTL_ES_DIVERIFY:
case IOCTL_ES_DIVERIFY_WITH_VIEW:
return DIVerify(request); return DIVerify(request);
case IOCTL_ES_GETOWNEDTITLECNT: case IOCTL_ES_GETOWNEDTITLECNT:
@ -512,7 +513,6 @@ IPCCommandResult ES::IOCtlV(const IOCtlVRequest& request)
return GetTicketFromView(request); return GetTicketFromView(request);
case IOCTL_ES_VERIFYSIGN: case IOCTL_ES_VERIFYSIGN:
case IOCTL_ES_UNKNOWN_3B:
case IOCTL_ES_UNKNOWN_3C: case IOCTL_ES_UNKNOWN_3C:
case IOCTL_ES_UNKNOWN_3D: case IOCTL_ES_UNKNOWN_3D:
case IOCTL_ES_UNKNOWN_3E: case IOCTL_ES_UNKNOWN_3E:

View File

@ -181,7 +181,7 @@ private:
IOCTL_ES_DELETESHAREDCONTENT = 0x38, IOCTL_ES_DELETESHAREDCONTENT = 0x38,
IOCTL_ES_DIGETTMDSIZE = 0x39, IOCTL_ES_DIGETTMDSIZE = 0x39,
IOCTL_ES_DIGETTMD = 0x3A, IOCTL_ES_DIGETTMD = 0x3A,
IOCTL_ES_UNKNOWN_3B = 0x3B, IOCTL_ES_DIVERIFY_WITH_VIEW = 0x3B,
IOCTL_ES_UNKNOWN_3C = 0x3C, IOCTL_ES_UNKNOWN_3C = 0x3C,
IOCTL_ES_UNKNOWN_3D = 0x3D, IOCTL_ES_UNKNOWN_3D = 0x3D,
IOCTL_ES_UNKNOWN_3E = 0x3E, IOCTL_ES_UNKNOWN_3E = 0x3E,