]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: allow uid/gid == 0 in copy_tree, copy_files, move_files 37542/head
authorTim Serong <tserong@suse.com>
Mon, 5 Oct 2020 09:14:42 +0000 (20:14 +1100)
committerTim Serong <tserong@suse.com>
Mon, 5 Oct 2020 09:14:44 +0000 (20:14 +1100)
commit768e89d9ae733c88a9e85b71b5432f8d6f511f43
tree1cdbbf8bdf09f918309b7da252c1edcfea6db354
parentedb851be09616ac089db946d17ac9255967d2e00
cephadm: allow uid/gid == 0 in copy_tree, copy_files, move_files

If the uid or gid passed to copy_tree(), copy_files() or
move_files() is 0 (the root user), the current check for
`if not uid or not gid` does the wrong thing, i.e. it
thinks the uid and/or gid aren't set, then calls out to
extract_uid_gid(), which fails when run against
prometheus/grafana/alertmanager containers.

Fixes: https://tracker.ceph.com/issues/47745
Signed-off-by: Tim Serong <tserong@suse.com>
src/cephadm/cephadm