Skip to content

Commit cc15461

Browse files
darkrain42smfrench
authored andcommitted
SMB3: Honor 'seal' flag for multiuser mounts
Ensure multiuser SMB3 mounts use encryption for all users' tcons if the mount options are configured to require encryption. Without this, only the primary tcon and IPC tcons are guaranteed to be encrypted. Per-user tcons would only be encrypted if the server was configured to require encryption. Signed-off-by: Paul Aurich <[email protected]> CC: Stable <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]>
1 parent aadd69c commit cc15461

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5309,6 +5309,7 @@ cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid)
53095309
vol_info->no_linux_ext = !master_tcon->unix_ext;
53105310
vol_info->sectype = master_tcon->ses->sectype;
53115311
vol_info->sign = master_tcon->ses->sign;
5312+
vol_info->seal = master_tcon->seal;
53125313

53135314
rc = cifs_set_vol_auth(vol_info, master_tcon->ses);
53145315
if (rc) {

0 commit comments

Comments
 (0)