From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JaCQZ-0006s9-Ro for qemu-devel@nongnu.org; Fri, 14 Mar 2008 12:06:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JaCQW-0006ri-A7 for qemu-devel@nongnu.org; Fri, 14 Mar 2008 12:06:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaCQW-0006rf-6A for qemu-devel@nongnu.org; Fri, 14 Mar 2008 12:06:36 -0400 Received: from fk-out-0910.google.com ([209.85.128.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JaCQV-0006Nd-L1 for qemu-devel@nongnu.org; Fri, 14 Mar 2008 12:06:35 -0400 Received: by fk-out-0910.google.com with SMTP id 18so4425544fkq.2 for ; Fri, 14 Mar 2008 09:06:31 -0700 (PDT) Message-ID: <5b5833aa0803140906n210c245fof5889f7c7c4e8a68@mail.gmail.com> Date: Fri, 14 Mar 2008 12:06:29 -0400 From: "Anderson Lizardo" Subject: Re: [Qemu-devel] [PATCH] -chroot and -su options. In-Reply-To: <200803031828.22657.rob@landley.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200803031828.22657.rob@landley.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, On Mon, Mar 3, 2008 at 8:28 PM, Rob Landley wrote: > Quick and dirty patch to teach qemu application emulation how to chroot (and > drop privs), so you don't have to pollute a target filesystem with host code, > and/or figure out how to build qemu static in order to run a dynamic binary. I tested your patch, but it doesn't seem to work when the application forks a new process (the new process is attempted to run as a native host executable, instead of with qemu). Is that expected? I tried enabling binfmt for it, but then qemu needs to be static, defeating the purpose of this option. Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia Manaus - Brazil