mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
4e7a5dcd1b
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>
29 lines
501 B
C
29 lines
501 B
C
#ifndef _FS_CEPH_AUTH_NONE_H
|
|
#define _FS_CEPH_AUTH_NONE_H
|
|
|
|
#include "auth.h"
|
|
|
|
/*
|
|
* null security mode.
|
|
*
|
|
* we use a single static authorizer that simply encodes our entity name
|
|
* and global id.
|
|
*/
|
|
|
|
struct ceph_none_authorizer {
|
|
char buf[128];
|
|
int buf_len;
|
|
char reply_buf[0];
|
|
};
|
|
|
|
struct ceph_auth_none_info {
|
|
bool starting;
|
|
bool built_authorizer;
|
|
struct ceph_none_authorizer au; /* we only need one; it's static */
|
|
};
|
|
|
|
extern int ceph_auth_none_init(struct ceph_auth_client *ac);
|
|
|
|
#endif
|
|
|