summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_acl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/rgw_acl.cc')
-rw-r--r--src/rgw/rgw_acl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rgw/rgw_acl.cc b/src/rgw/rgw_acl.cc
index ec5de88cecb..a87cd8e2b1e 100644
--- a/src/rgw/rgw_acl.cc
+++ b/src/rgw/rgw_acl.cc
@@ -150,11 +150,12 @@ uint32_t RGWAccessControlList::get_group_perm(const DoutPrefixProvider *dpp,
return 0;
}
-uint32_t RGWAccessControlList::get_referer_perm(const uint32_t current_perm,
+uint32_t RGWAccessControlList::get_referer_perm(const DoutPrefixProvider *dpp,
+ const uint32_t current_perm,
const std::string http_referer,
const uint32_t perm_mask)
{
- ldout(cct, 5) << "Searching permissions for referer=" << http_referer
+ ldpp_dout(dpp, 5) << "Searching permissions for referer=" << http_referer
<< " mask=" << perm_mask << dendl;
/* This function is basically a transformation from current perm to
@@ -168,7 +169,7 @@ uint32_t RGWAccessControlList::get_referer_perm(const uint32_t current_perm,
}
}
- ldout(cct, 5) << "Found referer permission=" << referer_perm << dendl;
+ ldpp_dout(dpp, 5) << "Found referer permission=" << referer_perm << dendl;
return referer_perm & perm_mask;
}
@@ -203,7 +204,7 @@ uint32_t RGWAccessControlPolicy::get_perm(const DoutPrefixProvider* dpp,
/* Should we continue looking up even deeper? */
if (nullptr != http_referer && (perm & perm_mask) != perm_mask) {
- perm = acl.get_referer_perm(perm, http_referer, perm_mask);
+ perm = acl.get_referer_perm(dpp, perm, http_referer, perm_mask);
}
ldpp_dout(dpp, 5) << "-- Getting permissions done for identity=" << auth_identity