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


Groups > linux.kernel > #1456454

Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option

From ebiederm@xmission.com (Eric W. Biederman)
Newsgroups linux.kernel
Subject Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option
Date 2016-08-04 17:00 +0200
Message-ID <s2shQ-28W-9@gated-at.bofh.it> (permalink)
References <rZEyR-4Oy-5@gated-at.bofh.it> <rZEyS-4Oy-7@gated-at.bofh.it> <s2hcK-3aD-15@gated-at.bofh.it> <s2pWG-yi-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hari Bathini <hbathini@linux.vnet.ibm.com> writes:

> Hi Eric,
>
>
> Thanks for the comments..
>
>
> On Thursday 04 August 2016 08:24 AM, Eric W. Biederman wrote:
>> Hari Bathini <hbathini@linux.vnet.ibm.com> writes:
>>
>>> When tracefs is mounted inside a container, its files are visible to
>>> all containers. This implies that a user from within a container can
>>> list/delete uprobes registered elsewhere, leading to security issues
>>> and/or denial of service (Eg. deleting a probe that is registered from
>>> elsewhere). This patch addresses this problem by adding mount option
>>> 'newinstance', allowing containers to have their own instance mounted
>>> separately. Something like the below from within a container:
>> newinstance is an anti-pattern in devpts and should not be copied.
>> To fix some severe defects of devpts we had to always create new
>> istances and the code and the testing to make that all work was
>
> OK..
>
>> not pleasant.  Please don't add another option that we will just have to
>> make redundant later.
>
> IIUC, you mean, implicitly create a new instance for tracefs mount
> inside container without the need for a new option?

Yes.  Or always create a new instance.  Whatever makes sense.  If we
don't have to bind things to a namespace all the better.

Eric

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


Thread

[RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option Hari Bathini <hbathini@linux.vnet.ibm.com> - 2016-07-27 23:30 +0200
  Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option ebiederm@xmission.com (Eric W. Biederman) - 2016-08-04 05:10 +0200
    Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option Hari Bathini <hbathini@linux.vnet.ibm.com> - 2016-08-04 14:30 +0200
      Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option ebiederm@xmission.com (Eric W. Biederman) - 2016-08-04 17:00 +0200

csiph-web