linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [v3.2.y][PATCH 0/1] cifs: set MAY_SIGN when sec=krb5
@ 2014-02-28 21:07 Joseph Salisbury
       [not found] ` <cover.1393535604.git.joseph.salisbury-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Salisbury @ 2014-02-28 21:07 UTC (permalink / raw)
  To: ben; +Cc: sfrench, linux-cifs, samba-technical, linux-kernel, stable

BugLink: http://bugs.launchpad.net/bugs/1285723

Hi Ben,

Please consider including a backport of upstream commit 0b7bc84000d71f3647ca33ab1bf5bd928535c846 in the next v3.2.y release.  It was included upstream as of v3.9-rc1.  It has been tested and confirmed to resolve http://bugs.launchpad.net/bugs/1285723 .

commit 0b7bc84000d71f3647ca33ab1bf5bd928535c846
Author: Martijn de Gouw <martijn.de.gouw@prodrive.nl>
Date:   Wed Oct 24 11:45:46 2012 +0200

    cifs: set MAY_SIGN when sec=krb5

This commit has a requrement for commit 8830d7e07a5e38bc47650a7554b7c1cfd49902bf, so it does not apply cleanly to v3.2.  I performed a backport to avoid this requirement, which is in email 1/1.


Sincerely,
Joseph Salisbury

Joseph Salisbury (1):
  cifs: set MAY_SIGN when sec=krb5

 fs/cifs/connect.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [v3.2.y][PATCH 1/1] cifs: set MAY_SIGN when sec=krb5
       [not found] ` <cover.1393535604.git.joseph.salisbury-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2014-02-28 21:07   ` Joseph Salisbury
  2014-03-30 20:34     ` Ben Hutchings
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Salisbury @ 2014-02-28 21:07 UTC (permalink / raw)
  To: ben-/+tVBieCtBitmTQ+vhA3Yw
  Cc: sfrench-eUNUBHrolfbYtjvyW6yDsg, linux-cifs-u79uwXL29TY76Z2rM5mHXA,
	samba-technical-w/Ol4Ecudpl8XjKLYN78aQ,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	stable-u79uwXL29TY76Z2rM5mHXA

Backport from mainline commit: 0b7bc84000d71f3647ca33ab1bf5bd928535c846.
This backport was done so including mainline commit
8830d7e07a5e38bc47650a7554b7c1cfd49902bf is not needed.

BugLink: http://bugs.launchpad.net/bugs/1285723

Signed-off-by: Joseph Salisbury <joseph.salisbury-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
---
 fs/cifs/connect.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 56c152d..49d6e21 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1113,7 +1113,8 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
 				cERROR(1, "Krb5 cifs privacy not supported");
 				goto cifs_parse_mount_err;
 			} else if (strnicmp(value, "krb5", 4) == 0) {
-				vol->secFlg |= CIFSSEC_MAY_KRB5;
+				vol->secFlg |= CIFSSEC_MAY_KRB5 | 
+					CIFSSEC_MAY_SIGN;
 			} else if (strnicmp(value, "ntlmsspi", 8) == 0) {
 				vol->secFlg |= CIFSSEC_MAY_NTLMSSP |
 					CIFSSEC_MUST_SIGN;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [v3.2.y][PATCH 1/1] cifs: set MAY_SIGN when sec=krb5
  2014-02-28 21:07   ` [v3.2.y][PATCH 1/1] " Joseph Salisbury
@ 2014-03-30 20:34     ` Ben Hutchings
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Hutchings @ 2014-03-30 20:34 UTC (permalink / raw)
  To: Joseph Salisbury
  Cc: sfrench, linux-cifs, samba-technical, linux-kernel, stable

[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]

On Fri, 2014-02-28 at 16:07 -0500, Joseph Salisbury wrote:
> Backport from mainline commit: 0b7bc84000d71f3647ca33ab1bf5bd928535c846.
> This backport was done so including mainline commit
> 8830d7e07a5e38bc47650a7554b7c1cfd49902bf is not needed.
> 
> BugLink: http://bugs.launchpad.net/bugs/1285723
> 
> Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>

Queued up for 3.2, thanks.

Please include the original patch header in future.

Ben.

> ---
>  fs/cifs/connect.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
> index 56c152d..49d6e21 100644
> --- a/fs/cifs/connect.c
> +++ b/fs/cifs/connect.c
> @@ -1113,7 +1113,8 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
>  				cERROR(1, "Krb5 cifs privacy not supported");
>  				goto cifs_parse_mount_err;
>  			} else if (strnicmp(value, "krb5", 4) == 0) {
> -				vol->secFlg |= CIFSSEC_MAY_KRB5;
> +				vol->secFlg |= CIFSSEC_MAY_KRB5 | 
> +					CIFSSEC_MAY_SIGN;
>  			} else if (strnicmp(value, "ntlmsspi", 8) == 0) {
>  				vol->secFlg |= CIFSSEC_MAY_NTLMSSP |
>  					CIFSSEC_MUST_SIGN;

-- 
Ben Hutchings
If more than one person is responsible for a bug, no one is at fault.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-30 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 21:07 [v3.2.y][PATCH 0/1] cifs: set MAY_SIGN when sec=krb5 Joseph Salisbury
     [not found] ` <cover.1393535604.git.joseph.salisbury-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2014-02-28 21:07   ` [v3.2.y][PATCH 1/1] " Joseph Salisbury
2014-03-30 20:34     ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).