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>
このコミットが含まれているのは:
Ilya Dryomov
2015-10-28 23:52:06 +01:00
コミット a51983e4dd
4個のファイルの変更22行の追加2行の削除

ファイルの表示

@@ -2677,7 +2677,7 @@ more:
if (ret <= 0) {
switch (ret) {
case -EBADMSG:
con->error_msg = "bad crc";
con->error_msg = "bad crc/signature";
/* fall through */
case -EBADE:
ret = -EIO;