summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-03-31 21:22:00 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2006-04-17 13:16:06 -0700
commitdea8e11ab727c4c7d75d391354eab355cd74e95a (patch)
treea53e0dd92214d00ec2e07fba3800514fc586354e /scripts
parent284a7c99c01846ee44040268529c99fc92dcc531 (diff)
[PATCH] Incorrect signature sent on SMB Read
Fixes Samba bug 3621 and kernel.org bug 6147 For servers which require SMB/CIFS packet signing, we were sending the wrong signature (all zeros) on SMB Read request. The new cifs routine to do signatures across an iovec was not complete - and SMB Read, unlike the new SMBWrite2, did not fall back to the older routine (ie use SendReceive vs. the more efficient SendReceive2 ie used the older cifs_sign_smb vs. the disabled cifs_sign_smb2) for calculating signatures. This finishes up cifs_sign_smb2/cifs_calc_signature2 so that the callers of SendReceive2 can get SMB/CIFS packet signatures. Now that cifs_sign_smb2 is supported, we could start using it in the write path but this smaller fix does not include the change to use SMBWrite2 when signatures are required (which when enabled will make more Writes more efficient and alloc less memory). Currently Write2 is only used when signatures are not required at the moment but after more testing we will enable that as well). Thanks to James Slepicka and Sam Flory for initial investigation. Signed-off-by: Steve French <sfrench@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions