From: ebiederm@xmission.com (Eric W. Biederman)
To: Mateusz Guzik <mguzik@redhat.com>
Cc: Zhao Lei <zhaolei@cn.fujitsu.com>,
containers@lists.linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Make core_pattern support namespace
Date: Wed, 17 Feb 2016 14:15:24 -0600 [thread overview]
Message-ID: <87k2m33xgj.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <20160216142608.GA16757@mguzik> (Mateusz Guzik's message of "Tue, 16 Feb 2016 15:26:09 +0100")
Mateusz Guzik <mguzik@redhat.com> writes:
> On Tue, Feb 16, 2016 at 07:33:39PM +0800, Zhao Lei wrote:
>> Currently, each container shared one copy of coredump setting
>> with the host system, if host system changed the setting, each
>> running containers will be affected.
>>
>> Moreover, it is not easy to let each container keeping their own
>> coredump setting.
>>
>> We can use some workaround as pipe program to make the second
>> requirement possible, but it is not simple, and both host and
>> container are limited to set to fixed pipe program.
>> In one word, for host running contailer, we can't change core_pattern
>> anymore.
>> To make the problem more hard, if a host running more than one
>> container product, each product will try to snatch the global
>> coredump setting to fit their own requirement.
>>
>> For container based on namespace design, it is good to allow
>> each container keeping their own coredump setting.
>>
>> It will bring us following benefit:
>> 1: Each container can change their own coredump setting
>> based on operation on /proc/sys/kernel/core_pattern
>> 2: Coredump setting changed in host will not affect
>> running containers.
>> 3: Support both case of "putting coredump in guest" and
>> "putting curedump in host".
>>
>> Each namespace-based software(lxc, docker, ..) can use this function
>> to custom their dump setting.
>>
>> And this function makes each continer working as separate system,
>> it fit for design goal of namespace.
>>
>
> Sorry if this is a false alarm, I don't have easy means to test it, but
> is not this an immediate privilege escalation?
It is. This is why we do not currently have a per namespace setting.
Solving the user mode helper problem is technically a fair amount of
work, if not theoretically challenging.
Eric
next prev parent reply other threads:[~2016-02-17 20:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 12:16 [PATCH] [RFC] " Zhao Lei
2016-02-16 14:26 ` [PATCH] " Mateusz Guzik
2016-02-17 20:15 ` Eric W. Biederman [this message]
2016-02-17 20:54 ` Mateusz Guzik
2016-02-18 11:59 ` Zhao Lei
2016-02-18 20:18 ` Eric W. Biederman
2016-02-19 10:24 ` Zhao Lei
2016-02-18 11:13 ` Zhao Lei
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=87k2m33xgj.fsf@x220.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=containers@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mguzik@redhat.com \
--cc=zhaolei@cn.fujitsu.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®