Skip to content

Commit 75ff2b8

Browse files
committed
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 <[email protected]>
1 parent 44c4a17 commit 75ff2b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rgw/driver/rados/rgw_d3n_datacache.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ void D3nDataCache::init(CephContext *_cct) {
8686
// create the cache storage directory
8787
lsubdout(g_ceph_context, rgw, 5) << "D3nDataCache: init: creating the persistent storage directory on start" << dendl;
8888
efs::create_directories(cache_location);
89+
efs::permissions(cache_location,
90+
efs::perms::owner_all | efs::perms::group_all | efs::perms::others_read);
8991
}
9092
} catch (const efs::filesystem_error& e) {
9193
lderr(g_ceph_context) << "D3nDataCache: init: ERROR initializing the cache storage directory '" << cache_location <<

0 commit comments

Comments
 (0)