]> git.karo-electronics.de Git - linux-beck.git/commit
ceph: negotiate authentication protocol; implement AUTH_NONE protocol
authorSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 00:19:57 +0000 (16:19 -0800)
committerSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 00:19:57 +0000 (16:19 -0800)
commit4e7a5dcd1bbab6560fbc8ada29a840e7a20ed7bc
treea77e9b4563022340361ca673ef2e1beebb538e2f
parent5f44f142601bf94c448e2d463f0f18fd159da164
ceph: negotiate authentication protocol; implement AUTH_NONE protocol

When we open a monitor session, we send an initial AUTH message listing
the auth protocols we support, our entity name, and (possibly) a previously
assigned global_id.  The monitor chooses a protocol and responds with an
initial message.

Initially implement AUTH_NONE, a dummy protocol that provides no security,
but works within the new framework.  It generates 'authorizers' that are
used when connecting to (mds, osd) services that simply state our entity
name and global_id.

This is a wire protocol change.

Signed-off-by: Sage Weil <sage@newdream.net>
20 files changed:
fs/ceph/Makefile
fs/ceph/auth.c [new file with mode: 0644]
fs/ceph/auth.h [new file with mode: 0644]
fs/ceph/auth_none.c [new file with mode: 0644]
fs/ceph/auth_none.h [new file with mode: 0644]
fs/ceph/ceph_fs.h
fs/ceph/ceph_strings.c
fs/ceph/decode.h
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/messenger.c
fs/ceph/messenger.h
fs/ceph/mon_client.c
fs/ceph/mon_client.h
fs/ceph/msgr.h
fs/ceph/osd_client.c
fs/ceph/osd_client.h
fs/ceph/rados.h
fs/ceph/super.c
fs/ceph/super.h