auth_none.h 529 B

1234567891011121314151617181920212223242526272829
  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. int ceph_auth_none_init(struct ceph_auth_client *ac);
  22. #endif