[CIFS] Mount should fail if server signing off but client mount option requires it
authorJeff <jlayton@redhat.com>
Fri, 6 Jul 2007 21:10:07 +0000 (21:10 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 6 Jul 2007 21:10:07 +0000 (21:10 +0000)
commit38c10a1ddb24b9fa9f25b6c21d0390a9723ae6d6
treeaa6dbc101c0c3a308c778fa5d7708c21b86499ee
parentd38d8c74c7cdfae910f9cd0ac5e1b7ba2d8a2fb2
[CIFS] Mount should fail if server signing off but client mount option requires it

Currently, if mount with a signing-enabled sec= option (e.g.
sec=ntlmi), the kernel does a warning printk if the server doesn't
support signing, and then proceeds without signatures.

This is probably OK for people that think to look at the ring buffer,
but seems wrong to me. If someone explicitly requests signing, we
should error out if that request can't be satisfied. They can then
reattempt the mount without signing if that's ok.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/cifssmb.c