patch comments [patch 2/5]
"Matt Dew" <[email protected]> Fri, 22 Sep 2006 15:30:59 -0600
| Newsgroups | gmane.linux.cluster.openmosix.devel |
|---|---|
| Message-ID | <[email protected]> |
Instead of calling sys_* functions to set uid,gid,guid,ruid on the migrated process,... just set them directly. This was how it was originally and I changed it trying to fix other bugs. This is tha back out. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ openMosix-devel mailing list openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/openmosix-devel
openmosix-set-info_02.patch
(text/plain, 1.2 KB)
--- a/hpc/migrecv.c 2006-09-22 15:16:06.000000000 -0600
+++ b/hpc/migrecv.c 2006-09-22 15:16:50.000000000 -0600
@@ -446,20 +446,14 @@
p->om.tgid = m->tgid;
/* copy credentials */
- // p->uid = m->uid; //MSD
- sys_setuid(m->uid);
- // p->euid = m->euid;
- // p->suid = m->suid;
- sys_setresuid(m->uid,m->euid,m->suid);
- // p->fsuid = m->fsuid; //MSD
- sys_setfsuid(m->fsuid);
- // p->gid = m->gid; //MSD
- sys_setgid(m->gid);
- // p->egid = m->egid;
- // p->sgid = m->sgid;
- sys_setresgid(m->gid, m->egid, m->sgid);
- // p->fsgid = m->fsgid;
- sys_setfsgid(m->fsgid);
+ p->uid = m->uid;
+ p->euid = m->euid;
+ p->suid = m->suid;
+ p->fsuid = m->fsuid;
+ p->gid = m->gid;
+ p->egid = m->egid;
+ p->sgid = m->sgid;
+ p->fsgid = m->fsgid;
/* signals stuffs */
p->blocked = m->blocked;
@@ -472,12 +466,10 @@
/* FIXME we don't trust the other node anyway so copy rlimit from node[nr] */
memcpy(p->comm, m->comm, sizeof(m->comm));
- // p->personality = m->personality;
- set_personality(m->personality);
+ p->personality = m->personality;
arch_pick_mmap_layout(p->mm);
kcom_send_ack(p, pkt);
- printk("leaving FUNCTION: mig_do_receive_proc_context\n");
return 0;
}