aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/ceph_fs.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-18 19:19:57 -0500
committerSage Weil <sage@newdream.net>2009-11-18 19:19:57 -0500
commit4e7a5dcd1bbab6560fbc8ada29a840e7a20ed7bc (patch)
treea77e9b4563022340361ca673ef2e1beebb538e2f /fs/ceph/ceph_fs.h
parent5f44f142601bf94c448e2d463f0f18fd159da164 (diff)
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>
Diffstat (limited to 'fs/ceph/ceph_fs.h')
-rw-r--r--fs/ceph/ceph_fs.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/fs/ceph/ceph_fs.h b/fs/ceph/ceph_fs.h
index 36becb024788..1e96a9a87d8d 100644
--- a/fs/ceph/ceph_fs.h
+++ b/fs/ceph/ceph_fs.h
@@ -75,6 +75,16 @@ struct ceph_file_layout {
75int ceph_file_layout_is_valid(const struct ceph_file_layout *layout); 75int ceph_file_layout_is_valid(const struct ceph_file_layout *layout);
76 76
77 77
78/* crypto algorithms */
79#define CEPH_CRYPTO_NONE 0x0
80#define CEPH_CRYPTO_AES 0x1
81
82/* security/authentication protocols */
83#define CEPH_AUTH_UNKNOWN 0x0
84#define CEPH_AUTH_NONE 0x1
85#define CEPH_AUTH_CEPHX 0x2
86
87
78/********************************************* 88/*********************************************
79 * message layer 89 * message layer
80 */ 90 */
@@ -90,12 +100,12 @@ int ceph_file_layout_is_valid(const struct ceph_file_layout *layout);
90/* client <-> monitor */ 100/* client <-> monitor */
91#define CEPH_MSG_MON_MAP 4 101#define CEPH_MSG_MON_MAP 4
92#define CEPH_MSG_MON_GET_MAP 5 102#define CEPH_MSG_MON_GET_MAP 5
93#define CEPH_MSG_CLIENT_MOUNT 10
94#define CEPH_MSG_CLIENT_MOUNT_ACK 11
95#define CEPH_MSG_STATFS 13 103#define CEPH_MSG_STATFS 13
96#define CEPH_MSG_STATFS_REPLY 14 104#define CEPH_MSG_STATFS_REPLY 14
97#define CEPH_MSG_MON_SUBSCRIBE 15 105#define CEPH_MSG_MON_SUBSCRIBE 15
98#define CEPH_MSG_MON_SUBSCRIBE_ACK 16 106#define CEPH_MSG_MON_SUBSCRIBE_ACK 16
107#define CEPH_MSG_AUTH 17
108#define CEPH_MSG_AUTH_REPLY 18
99 109
100/* client <-> mds */ 110/* client <-> mds */
101#define CEPH_MSG_MDS_MAP 21 111#define CEPH_MSG_MDS_MAP 21