[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wgiBBXeY9ioZ8GtsxAcd42c265zwN7bYVY=cir01OimzA@mail.gmail.com>
Date: Thu, 29 Sep 2022 14:13:57 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: David Laight <David.Laight@...lab.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Serge E. Hallyn" <serge@...lyn.com>
Subject: Re: [PATCH 3/4] proc: Point /proc/net at /proc/thread-self/net
instead of /proc/self/net
On Thu, Sep 29, 2022 at 12:34 PM Al Viro <viro@...iv.linux.org.uk> wrote:
>
> Apparmor takes mount+dentry and turns that into pathname. Then acts
> upon the resulting string. *AFTER* the original had been resolved.
Ok. So it would have to act like a bind mount.
Which is probably not too bad.
In fact, maybe it would be ok for this to act like a hardlink and just
fill in the inode - not safe for a filesystem in general due to the
whole rename loop issue, but for /proc it might be fine?
Linus
Powered by blists - more mailing lists