linux/fs/smb
Steve French 7804c186f7 smb3: fix setting SecurityFlags when encryption is required
commit 1b5487aefb upstream.

Setting encryption as required in security flags was broken.
For example (to require all mounts to be encrypted by setting):

  "echo 0x400c5 > /proc/fs/cifs/SecurityFlags"

Would return "Invalid argument" and log "Unsupported security flags"
This patch fixes that (e.g. allowing overriding the default for
SecurityFlags  0x00c5, including 0x40000 to require seal, ie
SMB3.1.1 encryption) so now that works and forces encryption
on subsequent mounts.

Acked-by: Bharath SM <bharathsm@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-14 13:52:59 +02:00
..
client smb3: fix setting SecurityFlags when encryption is required 2024-08-14 13:52:59 +02:00
common ksmbd: return FILE_DEVICE_DISK instead of super magic 2024-07-25 09:49:19 +02:00
server ksmbd: return FILE_DEVICE_DISK instead of super magic 2024-07-25 09:49:19 +02:00
Kconfig
Makefile