From 1ce3057cc62d261bfc593bd2b93e785e8e2274ba Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 4 Feb 2011 07:21:26 -0500 Subject: [PATCH] --- yaml --- r: 232943 b: refs/heads/master c: e3f0dadb2b44746f6223ce4560406d19e02fb1cc h: refs/heads/master i: 232941: 66b23e5cb17cfbb087b31b075d72d41b68d159d3 232939: a29dda70a8c2b4a89a88de6acadcf324de704ea2 232935: 1989b34a24e0825f454eae39ae9f3e57bd61e0df 232927: 4f917755e2b2a18f9ec2a70edb186fc62e9c0d39 v: v3 --- [refs] | 2 +- trunk/fs/cifs/transport.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4f8827442d93..9e78b7a70594 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 64474bdd07f673cc48509ea0375274422c8f73bf +refs/heads/master: e3f0dadb2b44746f6223ce4560406d19e02fb1cc diff --git a/trunk/fs/cifs/transport.c b/trunk/fs/cifs/transport.c index b8c5e2eb43d0..fbc5aace54b1 100644 --- a/trunk/fs/cifs/transport.c +++ b/trunk/fs/cifs/transport.c @@ -359,6 +359,10 @@ cifs_call_async(struct TCP_Server_Info *server, struct smb_hdr *in_buf, if (rc) return rc; + /* enable signing if server requires it */ + if (server->secMode & (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) + in_buf->Flags2 |= SMBFLG2_SECURITY_SIGNATURE; + mutex_lock(&server->srv_mutex); mid = AllocMidQEntry(in_buf, server); if (mid == NULL) {