From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: Fam Zheng <famz@redhat.com>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] docker: Don't mount ccache db if NOUSER=1
Date: Thu, 28 Sep 2017 15:47:39 +0100 [thread overview]
Message-ID: <87lgkydgms.fsf@linaro.org> (raw)
In-Reply-To: <CAAdtpL5j_9qh2bmzpmx3ULgCFr8TkMF4AgUZF=7Ka66=3diD3A@mail.gmail.com>
Philippe Mathieu-Daudé <f4bug@amsat.org> writes:
> On Mon, Sep 25, 2017 at 4:54 AM, Fam Zheng <famz@redhat.com> wrote:
>> With NOUSER=1 the container runs code as root, which may create
>> privileged files that will not be be accssible next time. Skip ccache
>> dir mount in this case.
>>
>> Signed-off-by: Fam Zheng <famz@redhat.com>
>
> Acked-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Makes sense:
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
>
>> ---
>> tests/docker/Makefile.include | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
>> index 0e4f159619..6f9ea196a7 100644
>> --- a/tests/docker/Makefile.include
>> +++ b/tests/docker/Makefile.include
>> @@ -143,9 +143,11 @@ docker-run: docker-qemu-src
>> -e EXTRA_CONFIGURE_OPTS="$(EXTRA_CONFIGURE_OPTS)" \
>> -e V=$V -e J=$J -e DEBUG=$(DEBUG) \
>> -e SHOW_ENV=$(SHOW_ENV) \
>> - -e CCACHE_DIR=/var/tmp/ccache \
>> + $(if $(NOUSER),, \
>> + -e CCACHE_DIR=/var/tmp/ccache \
>> + -v $(DOCKER_CCACHE_DIR):/var/tmp/ccache:z \
>> + ) \
>> -v $$(readlink -e $(DOCKER_SRC_COPY)):/var/tmp/qemu:z$(COMMA)ro \
>> - -v $(DOCKER_CCACHE_DIR):/var/tmp/ccache:z \
>> $(IMAGE) \
>> /var/tmp/qemu/run \
>> $(TEST), " RUN $(TEST) in ${IMAGE}")
>> --
>> 2.13.5
>>
--
Alex Bennée
prev parent reply other threads:[~2017-09-28 14:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-25 7:54 [Qemu-devel] [PATCH] docker: Don't mount ccache db if NOUSER=1 Fam Zheng
2017-09-28 2:07 ` Philippe Mathieu-Daudé
2017-09-28 7:09 ` Fam Zheng
2017-09-28 14:47 ` Alex Bennée [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=87lgkydgms.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=f4bug@amsat.org \
--cc=famz@redhat.com \
--cc=pbonzini@redhat.com \
--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.