logo       


[SSI] openssi/kernel/cluster/ssi/vproc rproc_svr_pproc.c,1.1.2.2,1.1.2.3: msg#00207

Subject: [SSI] openssi/kernel/cluster/ssi/vproc rproc_svr_pproc.c,1.1.2.2,1.1.2.3
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc
In directory sc8-pr-cvs1:/tmp/cvs-serv13683/kernel/cluster/ssi/vproc

Modified Files:
      Tag: OPENSSI-RH
        rproc_svr_pproc.c 
Log Message:
Delay setting CWD and root until after unpacking user-mode memory.


Index: rproc_svr_pproc.c
===================================================================
RCS file: 
/cvsroot/ssic-linux/openssi/kernel/cluster/ssi/vproc/rproc_svr_pproc.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** rproc_svr_pproc.c   14 Jun 2003 01:35:02 -0000      1.1.2.2
--- rproc_svr_pproc.c   24 Jul 2003 06:23:01 -0000      1.1.2.3
***************
*** 190,193 ****
--- 190,201 ----
  }
  
+ /*
+  * Reopen the process' CWD and root. Also get the altroot, if
+  * one exists.
+  *
+  * Must be done after all other path_walk()'s, so that they
+  * can start from the global root, rather than the process root
+  * we now install.
+  */
  static inline int
  import_dirs(rvp_common_data *comm_datap)
***************
*** 368,383 ****
                goto out;
  
-       /*
-        * Reopen the process' CWD and root. Also get the altroot, if
-        * one exists.
-        *
-        * Must be done after reopen of fd's, so that their path_walk()'s
-        * can start from the global root, rather than the process root
-        * we now install.
-        */
-       error = import_dirs(comm_datap);
-       if (error)
-               goto out;
- 
        /* Set this after files have been reopen to avoid permission
         * errors, since the file was already open on the client node
--- 376,379 ----
***************
*** 461,464 ****
--- 457,464 ----
                goto out;
  
+       error = import_dirs(rf_datap->rd_common_data);
+       if (error)
+               goto out;
+ 
  out:
        return error;
***************
*** 477,480 ****
--- 477,484 ----
                goto out;
  
+       error = import_dirs(re_datap->rd_common_data);
+       if (error)
+               goto out;
+ 
  out:
        return error;
***************
*** 496,499 ****
--- 500,507 ----
  
        error = full_data_unload_msg(mi_datap->rd_full_data, regs, RVP_MIGRATE);
+       if (error)
+               goto out;
+ 
+       error = import_dirs(mi_datap->rd_common_data);
        if (error)
                goto out;




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe