From: Erik van der Kouwe Date: Thu, 9 Jun 2011 05:05:20 +0000 (+0000) Subject: Make sys_umap on grants check grantee X-Git-Tag: v3.2.0~541 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/named.html?a=commitdiff_plain;h=1e5f9dfa14452a8ea111561ff3cac23202a23a38;p=minix.git Make sys_umap on grants check grantee --- diff --git a/kernel/system/do_umap.c b/kernel/system/do_umap.c index a19f191d0..eb83db7d9 100644 --- a/kernel/system/do_umap.c +++ b/kernel/system/do_umap.c @@ -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;