[Zion] Check right permission for reply port send.

This commit is contained in:
Drew Galbraith 2024-08-17 17:49:06 -07:00
parent 7e68c1b641
commit 7825d1861a
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ glcr::ErrorCode EndpointRecv(ZEndpointRecvReq* req) {
glcr::ErrorCode ReplyPortSend(ZReplyPortSendReq* req) {
auto& proc = gScheduler->CurrentProcess();
auto reply_port_cap = proc.GetCapability(req->reply_port_cap);
RET_ERR(ValidateCapability<ReplyPort>(reply_port_cap, kZionPerm_Read));
RET_ERR(ValidateCapability<ReplyPort>(reply_port_cap, kZionPerm_Write));
auto reply_port = reply_port_cap->obj<ReplyPort>();
ASSIGN_OR_RETURN(IpcMessage message, TranslateRequestToIpcMessage(*req));