Add a way to restrict permissions on cap duplication.
This commit is contained in:
parent
7dd10a3e53
commit
f31652b981
10 changed files with 15 additions and 15 deletions
|
|
@ -9,8 +9,7 @@ void EndpointServerThreadBootstrap(void* endpoint_server) {
|
|||
|
||||
glcr::ErrorOr<glcr::UniquePtr<EndpointClient>> EndpointServer::CreateClient() {
|
||||
uint64_t client_cap;
|
||||
// FIXME: Restrict permissions to send-only here.
|
||||
RET_ERR(ZCapDuplicate(endpoint_cap_, &client_cap));
|
||||
RET_ERR(ZCapDuplicate(endpoint_cap_, ~(kZionPerm_Read), &client_cap));
|
||||
return EndpointClient::AdoptEndpoint(client_cap);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue