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 (Exim 4.30) id 1CEAQM-0000eK-FJ for user-mode-linux-devel@lists.sourceforge.net; Sun, 03 Oct 2004 10:45:30 -0700 Received: from cyphermail.sandelman.ottawa.on.ca ([205.150.200.161] helo=noxmail.sandelman.ottawa.on.ca) by sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1CEAPB-0005Rv-Ml for user-mode-linux-devel@lists.sourceforge.net; Sun, 03 Oct 2004 10:45:30 -0700 Subject: Re: [uml-devel] T-mode processes In-Reply-To: Message from BlaisorBlade of "Sun, 03 Oct 2004 17:04:29 +0200." <200410031704.29051.blaisorblade_spam@yahoo.it> References: <29246.1096763190@marajade.sandelman.ottawa.on.ca> <200410031704.29051.blaisorblade_spam@yahoo.it> Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Message-ID: <29485.1096825447@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-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Sun, 03 Oct 2004 13:44:07 -0400 To: BlaisorBlade Cc: user-mode-linux-devel@lists.sourceforge.net -----BEGIN PGP SIGNED MESSAGE----- >>>>> "BlaisorBlade" == BlaisorBlade writes: >> We also continue to have an issue with the /proc/PID/environ file >> not being owned by the process involved. BlaisorBlade> I'm looking at the permission in your listing and in BlaisorBlade> my linux, and I don't see anything strange. Plus, I BlaisorBlade> don't understand what you mean with "a file owned by a BlaisorBlade> certain process". BlaisorBlade> Do you mean "I start the process with uid build and BlaisorBlade> /proc/PID/* has uid root while it should have uid BlaisorBlade> build"? Yes. BlaisorBlade> If you mean this, the answer is that you seem to be BlaisorBlade> starting UML with one id and making it run with BlaisorBlade> another UID. At least, I see this permission situation BlaisorBlade> with the X Font Server: No, this is not the case. It runs as "build" and that is all. The problem is that the use of mm confuses the proc-permission system into thinking that the process is setuid. I wandered through this last year, when we first noticed this problem. This seems to be due to how mm->dumpable is initalized. (see task_dumpable in fs/proc/base.c) I tried to change it, but I was not successful. I can dig up my attempts, but they are on the list. - -- ] "Elmo went to the wrong fundraiser" - The Simpson | firewalls [ ] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[ ] mcr@xelerance.com http://www.sandelman.ottawa.on.ca/mcr/ |device driver[ ] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Finger me for keys iQCVAwUBQWA6ZoqHRg3pndX9AQHq4wQAicuhD6K2kVa9RAKpeuHxQoqEMaHsmES8 VBvblPm6DWFlo44ti2EFHK2+TxGHNRY3o7I2IAiodcB8L9YVUv2vZT+imnqbhUZ+ OHRv+qyuWPcPL3r8pZt7h4UecNhgHL5r+D7JRoYqia6UefQ9F0SHJMdo3hpgyPQP XY31FzFQcrM= =lEFE -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel