From: ebiederm@xmission.com (Eric W. Biederman)
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
"linux-unionfs\@vger.kernel.org" <linux-unionfs@vger.kernel.org>,
Linux-Fsdevel <linux-fsdevel@vger.kernel.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>,
sa <sa-dev@rainbow.by>, "Roth\, Andre" <andre.roth@roche.com>
Subject: Re: [PATCH 2/2] ovl: allow distributed fs as lower layer
Date: Tue, 09 Jun 2015 07:54:37 -0500 [thread overview]
Message-ID: <87sia1rqia.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <CAJfpegtM4KnKA+isDTDpakJcaYJT5nhN=pQUJx8Hs58SsondJA@mail.gmail.com> (Miklos Szeredi's message of "Tue, 9 Jun 2015 14:44:09 +0200")
Miklos Szeredi <miklos@szeredi.hu> writes:
> On Sun, Jun 7, 2015 at 3:02 AM, Eric W. Biederman <ebiederm@xmission.com> wrote:
>> A nasty corner case to be aware of (and I think this is part of what Al
>> was warning about). /proc/sys/net is different depending upon which
>> current->nsproxy->net_ns.
>
> Ah, I'm beginning to grasp what's going on there: mulitple dentries
> with the same name but belonging to different namespaces,
> ->d_compare() being used to select the right one. Is that it?
Yes. The whole sysctl_is_seen magic.
I am not proud of it, and I keep thinking I should create
/proc/<pid>/sys/... making /proc/sys a symlink to /proc/<pid>/sys/
so that case could go away. Although at this point tomoyo or apparmor
probably has rules that would make that impossible (despite no
applications actually caring). *sigh*
> Overlayfs checks for d_compare() on the root of the lower and upper
> trees, but here it only set on a subdirectory of proc, not on every
> dentry. So overlayfs should be careful and check for
> DCACHE_OP_COMPARE | DCACHE_OP_HASH and reject going down such a
> dentry.
That sound about right.
Eric
prev parent reply other threads:[~2015-06-09 13:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 13:29 [PATCH 0/2] ovl: support NFS " Miklos Szeredi
2015-06-04 13:29 ` [PATCH 1/2] ovl: don't traverse automount points Miklos Szeredi
2015-06-04 13:29 ` [PATCH 2/2] ovl: allow distributed fs as lower layer Miklos Szeredi
2015-06-05 0:07 ` Al Viro
2015-06-05 15:37 ` Miklos Szeredi
2015-06-07 1:02 ` Eric W. Biederman
2015-06-09 12:44 ` Miklos Szeredi
2015-06-09 12:54 ` Eric W. Biederman [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=87sia1rqia.fsf@x220.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=andre.roth@roche.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=sa-dev@rainbow.by \
--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 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®