diff options
author | Steve French <sfrench@us.ibm.com> | 2007-10-18 02:58:40 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-10-18 02:58:40 +0000 |
commit | abb63d6c3d3d0e4d93b63589135962091154be9b (patch) | |
tree | b0b22474c4bbaa5f95f4ad1f5c4ee2178a74fc9a /fs/cifs/cifssmb.c | |
parent | d628ddb62d3050e8e474aa3566bc6bafbe4b9c26 (diff) | |
download | lwn-abb63d6c3d3d0e4d93b63589135962091154be9b.tar.gz lwn-abb63d6c3d3d0e4d93b63589135962091154be9b.zip |
[CIFS] Return better error when server requires signing but client forbids
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index d22af63e8f1f..2b2d4fec3656 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -663,10 +663,12 @@ signing_check: /* MUST_SIGN already includes the MAY_SIGN FLAG so if this is zero it means that signing is disabled */ cFYI(1, ("Signing disabled")); - if (server->secMode & SECMODE_SIGN_REQUIRED) + if (server->secMode & SECMODE_SIGN_REQUIRED) { cERROR(1, ("Server requires " "packet signing to be enabled in " "/proc/fs/cifs/SecurityFlags.")); + rc = -EOPNOTSUPP; + } server->secMode &= ~(SECMODE_SIGN_ENABLED | SECMODE_SIGN_REQUIRED); } else if ((secFlags & CIFSSEC_MUST_SIGN) == CIFSSEC_MUST_SIGN) { |