From: Mark Kogan Date: Mon, 19 Aug 2024 16:18:21 +0000 (+0300) Subject: rgw: d3n: set access permissions for the D3N cache directory when creating it X-Git-Tag: v20.0.0~680^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=75ff2b8b552e1d6324f55112ec9419f6302b4f59;p=ceph.git 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 --- diff --git a/src/rgw/driver/rados/rgw_d3n_datacache.cc b/src/rgw/driver/rados/rgw_d3n_datacache.cc index c81954fce1c7..be1a44686969 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 <<