]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-daemon: clean up dir helpers, tighten up permissions
authorSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 21:59:24 +0000 (16:59 -0500)
committerSage Weil <sage@redhat.com>
Sat, 5 Oct 2019 19:29:09 +0000 (14:29 -0500)
commit0dc3d223036f82854b0eff4f11703f67a14500ca
treecdabb98d5745d0e808e7e9591b0ae27e68042c29
parentd65f49de17b0ce06e9435ea0ac04011b87a94959
ceph-daemon: clean up dir helpers, tighten up permissions

- don't pass args.{data,log}_dir to get_{data,log}_dir
- pass uid, gid, and mode to makedirs
- add make_data_dir and make_log_dir helpers, that optionally take uid/gid
- add make_data_dir_base that requires uid/gid
- use standard data and log dir modes, defined at top of file (0o700 for
  data, 0o770 for logs).  The data dir mode applies both to the fsid
  directory for the whole cluster and to each daemon's subdirectory; the
  log mode applies only to the fsid dir for the whole cluster, where
  all daemon logs are combined together in one directory.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon