From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 19vJTW-0003qU-00 for ; Fri, 05 Sep 2003 09:30:19 -0700 Received: from oetest.freeswan.org ([205.150.200.166] helo=noxmail.sandelman.ottawa.on.ca) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19vJTW-0001zX-9H for user-mode-linux-devel@lists.sourceforge.net; Fri, 05 Sep 2003 09:30:18 -0700 Subject: Re: [uml-devel] hostfs as root In-reply-to: Your message of "Fri, 05 Sep 2003 11:06:43 CDT." Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Message-ID: <11075.1062779336@marajade.sandelman.ottawa.on.ca> From: Michael Richardson Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: Date: Fri, 05 Sep 2003 12:28:56 -0400 To: Adam Heath Cc: Matt Zimmerman , user-mode-linux-devel@lists.sourceforge.net -----BEGIN PGP SIGNED MESSAGE----- >>>>> "Adam" == Adam Heath writes: Adam> On Fri, 5 Sep 2003, Michael Richardson wrote: >> >> I propose: stat(), save permissions chmod(u+rw) (as appropriate for >> >> the open) open() chmod(oldperms) >> Matt> Sounds like a recipe for lots of race conditions. >> Uh, how? Remember, this is in the kernel. We have locks. >> >> If two UMLs come along, using the same rootfs, well, that's a >> different problem. Adam> No, it's a problem. Just because there's no race in the emulated Adam> environment, doesn't mean there isn't a race in the host. I don't think that hostfs provides any inter-UML locking guarantees. What do we do with flock(2)? If you like, we can flock(2) the file too while we play with it. ] Out and about in Ottawa. hmmm... beer. | firewalls [ ] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[ ] mcr@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[ ] panic("Just another Debian/notebook using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Finger me for keys - custom hacks make this fully PGP2 compat iQCVAwUBP1i5x4qHRg3pndX9AQErKAQAjb02jUIC6x+RT3ojY8Ta9G3wuyqJFs35 O/ySSn/73X5kaAc3Vh96zSkaLI3+hE3LTR+CWhtbfSGFZCXDjcahVu9/2wuUm8Ud 7p6/1C7ZwNOZk5EJk/8rGpHP2oJAl4qY/bvcSoZ9f1JequzCilhjyxuua/4t09kW ZxqtZdP9nEM= =TF2P -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel