]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
global_init: ignore --set{user,group} if not root
authorSage Weil <sage@redhat.com>
Wed, 12 Aug 2015 20:50:31 +0000 (16:50 -0400)
committerSage Weil <sage@redhat.com>
Thu, 27 Aug 2015 00:35:15 +0000 (20:35 -0400)
commitb89d7521816990b3865fa025dc5408b63d118d8d
tree7c68c8d30fcbcbcf326b383c0d1b5c0c1a83fc53
parentaef00eb891db6febd548857f28f59ff241e5142f
global_init: ignore --set{user,group} if not root

Assume these options can only drop privileges; normal users can't setuid
root (and even if they could we wouldn't want to).

This makes ceph-disk behave when it sees the ceph user as 'root' and
invokes things with --setuser root but runs as a non-root user.

Signed-off-by: Sage Weil <sage@redhat.com>
src/global/global_init.cc