sst-linux/Documentation/admin-guide/cifs
Steve French 7804c186f7 smb3: fix setting SecurityFlags when encryption is required
commit 1b5487aefb1ce7a6b1f15a33297d1231306b4122 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
..
authors.rst cifs: documentation cleanup 2021-02-16 15:03:04 -06:00
changes.rst cifs: documentation cleanup 2021-02-16 15:03:04 -06:00
index.rst docs: fs: cifs: convert to ReST and add to admin-guide book 2019-07-31 14:13:42 -06:00
introduction.rst cifs: documentation cleanup 2021-02-16 15:03:04 -06:00
todo.rst cifs: documentation cleanup 2021-02-16 15:03:04 -06:00
usage.rst smb3: fix setting SecurityFlags when encryption is required 2024-08-14 13:52:59 +02:00
winucase_convert.pl Replace HTTP links with HTTPS ones: CIFS 2020-07-05 14:23:38 -06:00