]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: d3n: set access permissions for the D3N cache directory when creating it 59328/head
authorMark Kogan <mkogan@redhat.com>
Mon, 19 Aug 2024 16:18:21 +0000 (19:18 +0300)
committerMark Kogan <mkogan@redhat.com>
Mon, 19 Aug 2024 16:18:21 +0000 (19:18 +0300)
Fixes: https://tracker.ceph.com/issues/67616
Signed-off-by: Mark Kogan <mkogan@redhat.com>
src/rgw/driver/rados/rgw_d3n_datacache.cc

index c81954fce1c74a6f02d2eee8077684b6d500f762..be1a44686969dc753e133d9663bc958d5bce4aa0 100644 (file)
@@ -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 <<