Re: [PATCH 3/4] proc: Point /proc/net at /proc/thread-self/net instead of /proc/self/net

Linus Torvalds
2022-09-29T21:14:22Z

On Thu, Sep 29, 2022 at 12:34 PM Al Viro <viro@zeniv.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