libceph: add nocephx_sign_messages option
authorIlya Dryomov <idryomov@gmail.com>
Wed, 28 Oct 2015 22:52:06 +0000 (23:52 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Nov 2015 22:37:46 +0000 (23:37 +0100)
commita51983e4dd2d4d63912aab939f657c4cd476e21a
treecb8d56d2a5e64990d2177c17dec527c41c24a000
parent859bff51dc5e92ddfb5eb6f17b8040d9311095bb
libceph: add nocephx_sign_messages option

Support for message signing was merged into 3.19, along with
nocephx_require_signatures option.  But, all that option does is allow
the kernel client to talk to clusters that don't support MSG_AUTH
feature bit.  That's pretty useless, given that it's been supported
since bobtail.

Meanwhile, if one disables message signing on the server side with
"cephx sign messages = false", it becomes impossible to use the kernel
client since it expects messages to be signed if MSG_AUTH was
negotiated.  Add nocephx_sign_messages option to support this use case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/libceph.h
net/ceph/auth_x.c
net/ceph/ceph_common.c
net/ceph/messenger.c