[zion] Finish cleaning up process capability interface.

Make all functions generic and specify existing/vs new cap.
This commit is contained in:
Drew Galbraith 2023-06-16 15:09:15 -07:00
parent fc94bc5bf5
commit 242a18ae3c
5 changed files with 15 additions and 15 deletions

View file

@ -81,7 +81,7 @@ z_err_t ProcessSpawn(ZProcessSpawnReq* req, ZProcessSpawnResp* resp) {
return Z_ERR_CAP_NOT_FOUND;
}
// FIXME: Check permissions.
resp->bootstrap_cap = proc->AddCapability(cap);
resp->bootstrap_cap = proc->AddExistingCapability(cap);
}
return Z_OK;