]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
global: implement setuser_match_path
authorSage Weil <sage@redhat.com>
Thu, 6 Aug 2015 15:57:48 +0000 (11:57 -0400)
committerSage Weil <sage@redhat.com>
Thu, 27 Aug 2015 00:34:15 +0000 (20:34 -0400)
commit28fdac32e7b22a9eda43a610610abd9b5b242269
tree764b7cef90c1bb8f471e49fae687da1a38b18885
parent09db67fdb5d6aacff27794550b0df3f90bd21df4
global: implement setuser_match_path

Allow the --setuser and --setgroup to be conditional on the
specified user/group matching the ownership of a given path.
This allows the ceph daemons to switch to user ceph for newly
deployed instances or stay as root depending on the ownership of
the data directory.

Signed-off-by: Sage Weil <sage@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
src/common/config_opts.h
src/global/global_init.cc