Make sys_umap on grants check grantee

This commit is contained in:
Erik van der Kouwe 2011-06-09 05:05:20 +00:00
parent 419dadf528
commit 1e5f9dfa14

View File

@ -53,8 +53,8 @@ PUBLIC int do_umap(struct proc * caller, message * m_ptr)
int new_proc_nr;
cp_grant_id_t grant = (cp_grant_id_t) offset;
if(verify_grant(targetpr->p_endpoint, ANY, grant, count, 0, 0,
&newoffset, &newep) != OK) {
if(verify_grant(targetpr->p_endpoint, caller->p_endpoint, grant, count,
0, 0, &newoffset, &newep) != OK) {
printf("SYSTEM: do_umap: verify_grant in %s, grant %d, bytes 0x%lx, failed, caller %s\n", targetpr->p_name, offset, count, caller->p_name);
proc_stacktrace(caller);
return EFAULT;