qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries
@ 2011-11-02 19:23 Alexander Graf
  2011-11-02 19:23 ` [Qemu-devel] [PATCH 1/5] linux-user: save auxv length Alexander Graf
  2011-11-03 10:47 ` [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries Riku Voipio
  0 siblings, 2 replies; 11+ messages in thread
From: Alexander Graf @ 2011-11-02 19:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: adrian, riku.voipio

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.

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(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-11-03 19:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 19:23 [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries Alexander Graf
2011-11-02 19:23 ` [Qemu-devel] [PATCH 1/5] linux-user: save auxv length Alexander Graf
2011-11-02 19:23   ` [Qemu-devel] [PATCH 2/5] linux-user: add open() hijack infrastructure Alexander Graf
2011-11-02 19:23     ` [Qemu-devel] [PATCH 3/5] linux-user: fake /proc/self/maps Alexander Graf
2011-11-02 19:23       ` [Qemu-devel] [PATCH 4/5] linux-user: fake /proc/self/stat Alexander Graf
2011-11-02 19:23         ` [Qemu-devel] [PATCH 5/5] linux-user: fake /proc/self/auxv Alexander Graf
2011-11-03 19:28       ` [Qemu-devel] [PATCH 3/5] linux-user: fake /proc/self/maps Alexander Graf
2011-11-03  9:34     ` [Qemu-devel] [PATCH 2/5] linux-user: add open() hijack infrastructure David Gilbert
2011-11-03 18:33       ` Alexander Graf
2011-11-03 10:47 ` [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries Riku Voipio
2011-11-03 18:34   ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).