From e9ad189694610134e3e887910c2a221655c6d642 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 27 Jan 2022 10:55:18 -0800 Subject: [PATCH] s3: smbd: Add an SMB2 server flag posix_extensions_negotiated. This allows the server to only enable smb2 unix open handles if the smb.conf parameter is set and the client client correctly negotiated smb2 unix on the connection. Currently there is no "smb2 unix extensions" parameter so this can never be set to true. Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider --- source3/smbd/globals.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index eef38f00a4e..b5bb26d1e36 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -532,6 +532,7 @@ struct smbXsrv_connection { uint32_t max_write; uint16_t sign_algo; uint16_t cipher; + bool posix_extensions_negotiated; } server; struct smbXsrv_preauth preauth;