[Samba] symlinks loop detection in Samba?

Jeremy Allison jra at samba.org
Tue Jan 19 18:09:57 UTC 2021

On Tue, Jan 19, 2021 at 05:57:14PM +0000, Rowland penny via samba wrote:
>On 19/01/2021 17:54, Jeremy Allison wrote:
>>On Tue, Jan 19, 2021 at 05:49:04PM +0000, Rowland penny via samba wrote:
>>>On 19/01/2021 17:37, Jeremy Allison via samba wrote:
>>>>Symlinks are a blight on a perfectly well designed filesystem. Once
>>>>the VFS work is finished, expect an epic rant (talk :-) I'm planning
>>>>to give :-). Not often I'll say this, but Microsoft got it right
>>>>in Windows on this point.
>>>Which is why I never understood why the default for 'follow 
>>>symlinks' is 'yes'. I also cannot understand why 'allow insecure 
>>>wide links' was created, probably someone asked for it, but they 
>>>should have been told no.
>>History Rowland, ancient history. Once such things are in and
>>supported it's really hard to remove them again.
>Yes, I know, sigh,
>Couldn't we just claim that they only work with SMBv1 and then remove 
>them 😇

That's sort of what we're intending to do with the SMB2 UNIX
extensions. Samba won't store them as symlinks on the server
side, but as reparse points stored in EA's. We'll still need
to expose existing filesystem symlinks as reparse points though.

More information about the samba mailing list