Re: [PATCH] ksmbd: remove follow symlinks support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 20.09.21 um 18:37 schrieb Namjae Jeon:
2021-09-21 1:28 GMT+09:00, Ralph Boehme <slow@xxxxxxxxx>:
Am 20.09.21 um 17:57 schrieb Namjae Jeon:
ksmbd_vfs_kern_path() doesn't return -ELOOP if last component is a
symlink. So need to check it using d_is_symlink().

Really? I missed that. Is that a behaviour of kern_path() when passing
LOOKUP_NO_SYMLINKS?
Yes.

d'oh! Got it. We're yet to make use of those flags in Samba, so I hadn't really wrapped my head fully around this to understand how it works in detail, so I messed up the semantics a bit. :)

-slow

--
Ralph Boehme, Samba Team                 https://samba.org/
SerNet Samba Team Lead      https://sernet.de/en/team-samba

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux