]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-daemon: fix bootstrap ownership of tmp monmap file
authorSage Weil <sage@redhat.com>
Fri, 6 Dec 2019 21:14:31 +0000 (15:14 -0600)
committerSage Weil <sage@redhat.com>
Fri, 6 Dec 2019 21:14:31 +0000 (15:14 -0600)
commit32e06caa35e60cf816f655bd6079d7fbe0314eb2
treeac1aea4e87d1c98af4c0617706559dd7b0ecdfee
parent9d4e7e2f275f93b9128af95d8f1899b41a3a10c0
ceph-daemon: fix bootstrap ownership of tmp monmap file

The file is created with mode 0644 by the ceph:ceph user, but root
cannot write to that.  Instead, create the tmp file owned by root, write
to it, then chown it to user ceph.

Fixes e92929d86dce2297d3e02ec88c6830224aefc061

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