From 75ff2b8b552e1d6324f55112ec9419f6302b4f59 Mon Sep 17 00:00:00 2001 From: Mark Kogan Date: Mon, 19 Aug 2024 19:18:21 +0300 Subject: [PATCH] rgw: d3n: set access permissions for the D3N cache directory when creating it Fixes: https://tracker.ceph.com/issues/67616 Signed-off-by: Mark Kogan --- src/rgw/driver/rados/rgw_d3n_datacache.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/driver/rados/rgw_d3n_datacache.cc b/src/rgw/driver/rados/rgw_d3n_datacache.cc index c81954fce1c..be1a4468696 100644 --- a/src/rgw/driver/rados/rgw_d3n_datacache.cc +++ b/src/rgw/driver/rados/rgw_d3n_datacache.cc @@ -86,6 +86,8 @@ void D3nDataCache::init(CephContext *_cct) { // create the cache storage directory lsubdout(g_ceph_context, rgw, 5) << "D3nDataCache: init: creating the persistent storage directory on start" << dendl; efs::create_directories(cache_location); + efs::permissions(cache_location, + efs::perms::owner_all | efs::perms::group_all | efs::perms::others_read); } } catch (const efs::filesystem_error& e) { lderr(g_ceph_context) << "D3nDataCache: init: ERROR initializing the cache storage directory '" << cache_location << -- 2.39.5