Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1295505

Re: [Propose] Isolate core_pattern in mnt namespace.

From Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Newsgroups linux.kernel
Subject Re: [Propose] Isolate core_pattern in mnt namespace.
Date 2015-12-20 04:00 +0100
Message-ID <qHCo2-39r-13@gated-at.bofh.it> (permalink)
References <qGF4B-7eB-7@gated-at.bofh.it> <qHBUZ-2YB-7@gated-at.bofh.it> <qHC4F-32L-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/20/2015 10:37 AM, Al Viro wrote:
> On Sun, Dec 20, 2015 at 10:14:29AM +0800, Dongsheng Yang wrote:
>> On 12/17/2015 07:23 PM, Dongsheng Yang wrote:
>>> Hi guys,
>>>      We are working on making core dump behaviour isolated in
>>> container. But the problem is, the /proc/sys/kernel/core_pattern
>>> is a kernel wide setting, not belongs to a container.
>>>
>>>      So we want to add core_pattern into mnt namespace. What
>>> do you think about it?
>>
>> Hi Eric,
>> 	I found your patch about "net: Implement the per network namespace
>> sysctl infrastructure", I want to do the similar thing
>> in mnt namespace. Is that suggested way?
>
> Why mnt namespace and not something else?

Hi Al,

Well, because core_pattern indicates the path to store core file.
In different mnt namespace, we would like to change the path with
different value.

In addition, Let's considering other namespaces:
UTS ns: contains informations of kernel and arch, not proper for 
core_pattern.
IPC ns: communication informations, not proper for core_pattern
PID ns: core_pattern is not related with pid
net ns: obviousely no.
user ns: not proper too.

Then I believe it's better to do this in mnt namespace. of course,
core_pattern is just one example. After this infrastructure finished,
we can implement more sysctls as per-mnt if necessary, I think.

Al, what do you think about this idea?

Yang
>
>
> .
>



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Propose] Isolate core_pattern in mnt namespace. Dongsheng Yang <yangds.fnst@cn.fujitsu.com> - 2015-12-17 12:40 +0100
  Re: [Propose] Isolate core_pattern in mnt namespace. Dongsheng Yang <yangds.fnst@cn.fujitsu.com> - 2015-12-20 03:30 +0100
    Re: [Propose] Isolate core_pattern in mnt namespace. Al Viro <viro@ZenIV.linux.org.uk> - 2015-12-20 03:40 +0100
      Re: [Propose] Isolate core_pattern in mnt namespace. Dongsheng Yang <yangds.fnst@cn.fujitsu.com> - 2015-12-20 04:00 +0100
        Re: [Propose] Isolate core_pattern in mnt namespace. ebiederm@xmission.com (Eric W. Biederman) - 2015-12-20 11:00 +0100
          Re: [Propose] Isolate core_pattern in mnt namespace. Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> - 2015-12-21 01:10 +0100
          Re: [Propose] Isolate core_pattern in mnt namespace. Dongsheng Yang <yangds.fnst@cn.fujitsu.com> - 2015-12-21 07:30 +0100
            Re: [Propose] Isolate core_pattern in mnt namespace. ebiederm@xmission.com (Eric W. Biederman) - 2015-12-21 23:10 +0100
              Re: [Propose] Isolate core_pattern in mnt namespace. Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> - 2015-12-22 04:20 +0100
                Re: [Propose] Isolate core_pattern in mnt namespace. Dongsheng Yang <yangds.fnst@cn.fujitsu.com> - 2015-12-23 04:30 +0100
              Re: [Propose] Isolate core_pattern in mnt namespace. Dongsheng Yang <yangds.fnst@cn.fujitsu.com> - 2015-12-23 04:30 +0100
                Re: [Propose] Isolate core_pattern in mnt namespace. ebiederm@xmission.com (Eric W. Biederman) - 2015-12-23 18:00 +0100

csiph-web