mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cifs: connect: added option krb5mi which may allow package signing
@ 2014-02-26 13:46 Lorenz Bucher
  2014-02-26 20:26 ` Jeff Layton
  0 siblings, 1 reply; 4+ messages in thread
From: Lorenz Bucher @ 2014-02-26 13:46 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, samba-technical, linux-kernel, lorenz.bucher

Solves an issue with dfs where servers using package signing are
mixed with servers which don't use package signing.

Signed-off-by: Lorenz Bucher <lorenz.bucher@gmx.de>
---
 fs/cifs/connect.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 56c152d..9d06dd8 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1104,6 +1104,9 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
                        if (!value || !*value) {
                                cERROR(1, "no security value specified");
                                continue;
+                       } else if (strnicmp(value, "krb5mi", 6) == 0) {
+                               vol->secFlg |= CIFSSEC_MAY_KRB5 | 
+                                       CIFSSEC_MAY_SIGN;
                        } else if (strnicmp(value, "krb5i", 5) == 0) {
                                vol->secFlg |= CIFSSEC_MAY_KRB5 |
                                        CIFSSEC_MUST_SIGN;
-- 
1.7.9.5

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

end of thread, other threads:[~2014-02-27 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-26 13:46 [PATCH] cifs: connect: added option krb5mi which may allow package signing Lorenz Bucher
2014-02-26 20:26 ` Jeff Layton
2014-02-27  9:13   ` Aw: " Lorenz Bucher
2014-02-27 15:03     ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®