From: Launchpad Bug Tracker <1808563@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1808563] Re: Listing the contents of / lists QEMU_LD_PREFIX instead
Date: Sun, 20 Jun 2021 04:17:24 -0000 [thread overview]
Message-ID: <162416264483.7948.9693387858046296407.malone@loganberry.canonical.com> (raw)
In-Reply-To: 154480918291.23267.15132018418369155034.malonedeb@soybean.canonical.com
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1808563
Title:
Listing the contents of / lists QEMU_LD_PREFIX instead
Status in QEMU:
Expired
Bug description:
Seeing this in qemu-user version 3.1.0
Demo:
$ QEMU_LD_PREFIX=$(pwd)/usr/armv7a-cros-linux-gnueabi ../run/qemu-arm /tmp/coreutils --coreutils-prog=ls /
etc lib usr
$ ls /
boot etc lib lib64 lost+found mnt root sbin sys usr
bin dev export home lib32 net proc run tmp var
$ ls usr/armv7a-cros-linux-gnueabi
etc lib usr
In strace, the openat for "/" is remapped to the directory specified in QEMU_LD_PREFIX:
[pid 5302] openat(AT_FDCWD, "/tmp/qemu/usr/armv7a-cros-linux-gnueabi", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
As an aside, if I change the code to do chdir("/"); opendir("."); it
works fine.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1808563/+subscriptions
prev parent reply other threads:[~2021-06-20 4:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 17:39 [Qemu-devel] [Bug 1808563] [NEW] Listing the contents of / lists QEMU_LD_PREFIX instead Alan Jones
2021-04-20 6:50 ` [Bug 1808563] " Thomas Huth
2021-04-20 8:06 ` Thomas Huth
2021-06-20 4:17 ` Launchpad Bug Tracker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=162416264483.7948.9693387858046296407.malone@loganberry.canonical.com \
--to=1808563@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.