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 19vIsW-00055Q-00 for ; Fri, 05 Sep 2003 08:52:04 -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 19vIsV-00024i-GL for user-mode-linux-devel@lists.sourceforge.net; Fri, 05 Sep 2003 08:52:03 -0700 Subject: Re: [uml-devel] hostfs as root In-reply-to: Your message of "Fri, 05 Sep 2003 10:01:19 EDT." <20030905140119.GM11825@alcor.net> Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Message-ID: <31667.1062777050@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 11:50:50 -0400 To: Matt Zimmerman Cc: user-mode-linux-devel@lists.sourceforge.net -----BEGIN PGP SIGNED MESSAGE----- >>>>> "Matt" == Matt Zimmerman writes: >> Well, if the opener is root, you get to ignore the permissions. That >> means that something has to break. >> >> 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. >> Well, leaving us in a lurch is decidely not friendly. Your fix has >> broken debian potato's mount. Being able to run other distros, >> versions, etc. inside of UML is one of the major features of UML. Matt> OK, so mount is already fixed. So the only problem is that you Matt> can't use an old, mildly buggy version of mount with root-hostfs as Matt> a non-root user on the host. I'd rather be able to extract tar Matt> files than have that scenario. Okay. I see. Matt> You must have already worked around some other problems in order to Matt> run potato in this configuration; it wouldn't work out of the box Matt> with a 2.4 kernel. How are you managing device nodes? Loading any Matt> kernel modules? Works fine for me. It has been working fine for two years now. ] 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 iQCVAwUBP1iw2YqHRg3pndX9AQEzJwP/T0G/+pKEc91jtkOOaVOcHEhGA7kyt+u2 fum+nFEkyeI7P/B+gn56j7ilGflQF/9PJUAZliQByXSh3kT+t+K6QfANV7b9MRSI V6tk23VZ9aiUJffqo0pirs0l2ePFfgR09kw7U0se8IGM0c/+OWvPYZSXClEt8yGb ptqs9Hzamms= =Biha -----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