auth_none.h 536 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _FS_CEPH_AUTH_NONE_H
  2. #define _FS_CEPH_AUTH_NONE_H
  3. #include <linux/slab.h>
  4. #include <linux/ceph/auth.h>
  5. /*
  6. * null security mode.
  7. *
  8. * we use a single static authorizer that simply encodes our entity name
  9. * and global id.
  10. */
  11. struct ceph_none_authorizer {
  12. char buf[128];
  13. int buf_len;
  14. char reply_buf[0];
  15. };
  16. struct ceph_auth_none_info {
  17. bool starting;
  18. bool built_authorizer;
  19. struct ceph_none_authorizer au; /* we only need one; it's static */
  20. };
  21. extern int ceph_auth_none_init(struct ceph_auth_client *ac);
  22. #endif