From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Layton Subject: Re: [PATCH 1/1] cifs: set MAY_SIGN when sec=krb5 Date: Wed, 24 Oct 2012 07:37:23 -0400 Message-ID: <20121024073723.2e5063db@tlielax.poochiereds.net> References: <1351071946-21458-1-git-send-email-martijn.de.gouw@prodrive.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: , To: Martijn de Gouw Return-path: In-Reply-To: <1351071946-21458-1-git-send-email-martijn.de.gouw-BHYAuTpL47qEVqv0pETR8A@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Wed, 24 Oct 2012 11:45:46 +0200 Martijn de Gouw wrote: > Setting this secFlg allows usage of dfs where some servers require > signing and others don't. > > Signed-off-by: Martijn de Gouw > --- > :100644 100644 b39bb4a... 4da9dd3... M fs/cifs/connect.c > fs/cifs/connect.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c > index b39bb4a..4da9dd3 100644 > --- a/fs/cifs/connect.c > +++ b/fs/cifs/connect.c > @@ -994,7 +994,7 @@ static int cifs_parse_security_flavors(char *value, > > switch (match_token(value, cifs_secflavor_tokens, args)) { > case Opt_sec_krb5: > - vol->secFlg |= CIFSSEC_MAY_KRB5; > + vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MAY_SIGN; > break; > case Opt_sec_krb5i: > vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MUST_SIGN; Looks like a reasonable bandaid until someone overhauls the auth selection code for sanity... Reviewed-by: Jeff Layton