[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] util/path: Always translate /etc/ld.so.cache

From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] util/path: Always translate /etc/ld.so.cache
Date: Fri, 27 Jan 2017 18:53:53 +0000

On 27 January 2017 at 18:31, Andrey Smirnov <address@hidden> wrote:
> Always translate /etc/ld.so.cache to point somwhere inside of guest's
> filesystem tree pointed to by 'prefix'. This prevents guest's libc from
> reading /etc/ld.so.cache of the host and potentialy failing. One of the
> manifestation of the problem could be easily reproduced by executing and
> simple application compiled for PowerPC on a x86 host using
> linux-use/qemu-ppc emulation.
> Anything as simple as:
>          qemu-ppc -L <prefix> <prefix>/bin/ls
> should trigger the problem.
> Signed-off-by: Andrey Smirnov <address@hidden>

Have you tested that this doesn't cause execution inside a chroot
to behave wrongly (in a chroot, the host fs /etc/ld.so.cache is
definitely the one you want to use) ?

(glibc really ought to fix their ld.so.cache reading bugs.)

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]