From: ebiederm@xmission.com (Eric W. Biederman)
To: Hari Bathini <hbathini@linux.vnet.ibm.com>
Cc: daniel@iogearbox.net, peterz@infradead.org,
linux-kernel@vger.kernel.org, acme@kernel.org,
alexander.shishkin@linux.intel.com, mingo@redhat.com,
paulus@samba.org, kernel@kyup.com, rostedt@goodmis.org,
viro@zeniv.linux.org.uk, aravinda@linux.vnet.ibm.com,
ananth@in.ibm.com
Subject: Re: [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option
Date: Thu, 04 Aug 2016 09:12:39 -0500 [thread overview]
Message-ID: <87shuk62so.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <ff4ec38a-e8ee-8ae2-9bf0-7df9420dab47@linux.vnet.ibm.com> (Hari Bathini's message of "Thu, 4 Aug 2016 17:56:20 +0530")
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
next prev parent reply other threads:[~2016-08-04 14:49 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-27 21:27 [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support Hari Bathini
2016-07-27 21:27 ` [RFC PATCH v2 1/3] perf: filter container events based on cgroup namespace Hari Bathini
2016-07-27 21:27 ` [RFC PATCH v2 2/3] tracefs: add instances support for uprobe events Hari Bathini
2016-08-01 21:45 ` Steven Rostedt
2016-08-02 17:27 ` Hari Bathini
2016-08-02 17:32 ` Hari Bathini
2016-08-02 17:49 ` Steven Rostedt
2016-08-03 19:30 ` Aravinda Prasad
2016-08-03 20:10 ` Steven Rostedt
2016-08-03 20:16 ` Aravinda Prasad
2016-08-04 1:04 ` Steven Rostedt
2016-08-04 13:46 ` Aravinda Prasad
2016-08-04 14:08 ` Steven Rostedt
2016-08-04 14:34 ` Aravinda Prasad
2016-07-27 21:27 ` [RFC PATCH v2 3/3] tracefs: add 'newinstance' mount option Hari Bathini
2016-08-04 2:54 ` Eric W. Biederman
2016-08-04 12:26 ` Hari Bathini
2016-08-04 14:12 ` Eric W. Biederman [this message]
[not found] ` <146965470618.23765.7329786743211962695.stgit-2ivJzYymj6EA+286u2LMdEEOCMrvLtNR@public.gmane.org>
2016-08-04 2:59 ` [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support Eric W. Biederman
2016-08-04 2:59 ` Eric W. Biederman
2016-08-04 14:48 ` Aravinda Prasad
2016-08-04 18:27 ` Eric W. Biederman
[not found] ` <87h9b01ja2.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
2016-08-04 19:11 ` Aravinda Prasad
2016-08-04 19:11 ` Aravinda Prasad
[not found] ` <57A355C1.4090004-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-08-04 18:27 ` Eric W. Biederman
[not found] ` <87twf1ck95.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
2016-08-04 14:48 ` Aravinda Prasad
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=87shuk62so.fsf@x220.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=ananth@in.ibm.com \
--cc=aravinda@linux.vnet.ibm.com \
--cc=daniel@iogearbox.net \
--cc=hbathini@linux.vnet.ibm.com \
--cc=kernel@kyup.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=viro@zeniv.linux.org.uk \
/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.