ksmbd: allow a filename to contain colons on SMB3.1.1 posix extensions
authorPhilipp Kerling <pkerling@casix.org>
Wed, 20 Aug 2025 14:24:13 +0000 (16:24 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 31 Aug 2025 22:48:38 +0000 (17:48 -0500)
commitb5ee94ac651aa42612095c4a75ff7f5c47cd9315
treee9fb5a781fc4095096def168633ab9b8c160785c
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0
ksmbd: allow a filename to contain colons on SMB3.1.1 posix extensions

If the client sends SMB2_CREATE_POSIX_CONTEXT to ksmbd, allow the filename
to contain a colon (':'). This requires disabling the support for Alternate
Data Streams (ADS), which are denoted by a colon-separated suffix to the
filename on Windows. This should not be an issue, since this concept is not
known to POSIX anyway and the client has to explicitly request a POSIX
context to get this behavior.

Link: https://lore.kernel.org/all/f9401718e2be2ab22058b45a6817db912784ef61.camel@rx2.rx-server.de/
Signed-off-by: Philipp Kerling <pkerling@casix.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/smb2pdu.c
fs/smb/server/vfs_cache.h