From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLupZ-0001cc-25 for qemu-devel@nongnu.org; Thu, 03 Nov 2011 06:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLupU-0001qT-TB for qemu-devel@nongnu.org; Thu, 03 Nov 2011 06:47:33 -0400 Received: from afflict.kos.to ([92.243.29.197]:44685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLupU-0001qN-OV for qemu-devel@nongnu.org; Thu, 03 Nov 2011 06:47:28 -0400 Date: Thu, 3 Nov 2011 12:47:26 +0200 From: Riku Voipio Message-ID: <20111103104726.GA24342@afflict.kos.to> References: <1320261806-13194-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1320261806-13194-1-git-send-email-agraf@suse.de> Subject: Re: [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: adrian@suse.de, riku.voipio@iki.fi, qemu-devel@nongnu.org On Wed, Nov 02, 2011 at 08:23:21PM +0100, Alexander Graf wrote: > When running linux-user programs in QEMU, the guest program can examine > itself by checking /proc/self/ files. And some libraries really do use > this! > > Unfortunately, when checking /proc/self/ today, the guest program sees > the QEMU files, exposing wrong information to the guest program. > This patch set fakes auxv, maps and stat to make gtk, pthread and boehm > gc happy. This is awesome stuff, but unfortunately just a day after 1.0 hard freeze :( David pointed out that more files in proc could be done, but this is a good start. Riku > Alex > > Alexander Graf (5): > linux-user: save auxv length > linux-user: add open() hijack infrastructure > linux-user: fake /proc/self/maps > linux-user: fake /proc/self/stat > linux-user: fake /proc/self/auxv > > linux-user/elfload.c | 15 ++----- > linux-user/qemu.h | 1 + > linux-user/syscall.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++- > 3 files changed, 125 insertions(+), 14 deletions(-) >