[Virtio-fs] [PATCH] virtiofsd: remove symlink fallbacks

Miklos Szeredi mszeredi at redhat.com
Fri May 15 04:42:00 UTC 2020


On Fri, May 15, 2020 at 5:43 AM Liu Bo <bo.liu at linux.alibaba.com> wrote:
>
> On Thu, May 14, 2020 at 04:07:36PM +0200, Miklos Szeredi wrote:
> > Path lookup in the kernel has special rules for looking up magic symlinks
> > under /proc.  If a filesystem operation is instructed to follow symlinks
> > (e.g. via AT_SYMLINK_FOLLOW or lack of AT_SYMLINK_NOFOLLOW), and the final
> > component is such a proc symlink, then the target of the magic symlink is
> > used for the operation, even if the target itself is a symlink.  I.e. path
> > lookup is always terminated after following a final magic symlink.
> >
>
> Hi Miklos,
>
> Are these mentioned special rules supported by a recent kernel version
> or are they there from day one linux?

Hi Liubo,

AFAICS, these rules have been there from day one.

Thanks,
Miklos




More information about the Virtio-fs mailing list