diff options
author | Matt Benjamin <mbenjamin@redhat.com> | 2015-10-06 21:36:32 +0200 |
---|---|---|
committer | Matt Benjamin <mbenjamin@redhat.com> | 2016-02-12 18:04:44 +0100 |
commit | 7e21e2386d704156c4457a166280b9ceab58e1eb (patch) | |
tree | 2457054dbbcaf9438ddc33c095820d11eb027f02 /src/rgw/rgw_lib.h | |
parent | librgw: split RGWUserInfo from struct req_state (diff) | |
download | ceph-7e21e2386d704156c4457a166280b9ceab58e1eb.tar.xz ceph-7e21e2386d704156c4457a166280b9ceab58e1eb.zip |
librgw: cache RGWUserInfo in rgw_fs private handle
The private RGWLibFS type holds a RGWUserInfo, and
calls rgw_get_user_info_by_access_key and verifies the returned
secret, checks for suspended user, on rgw_mount.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Diffstat (limited to 'src/rgw/rgw_lib.h')
-rw-r--r-- | src/rgw/rgw_lib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rgw/rgw_lib.h b/src/rgw/rgw_lib.h index 0c24aa602c9..40c8f7fa555 100644 --- a/src/rgw/rgw_lib.h +++ b/src/rgw/rgw_lib.h @@ -105,12 +105,13 @@ class RGWLibRequest : public RGWRequest, public RGWHandler_Lib { public: CephContext* cct; + RGWUserInfo* user; /* unambiguiously return req_state */ inline struct req_state* get_state() { return this->RGWRequest::s; } RGWLibRequest(CephContext* _cct) - : RGWRequest(0), cct(_cct) + : RGWRequest(0), cct(_cct), user(nullptr) {} /* descendant equivalent of *REST*::init_from_header(...): |