]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-crash: drop privleges to run as "ceph" user, rather than root
authorTim Serong <tserong@suse.com>
Wed, 2 Nov 2022 03:27:47 +0000 (14:27 +1100)
committerTim Serong <tserong@suse.com>
Wed, 9 Nov 2022 04:20:27 +0000 (15:20 +1100)
commit5abc23035e8ee4a46c8da32a8f58da30eb0e195e
tree25a178db62d5e6c54b441b494bef31f5afa13904
parent5dbac9357634b026d2d21e653362bb4a144e7264
ceph-crash: drop privleges to run as "ceph" user, rather than root

If privileges cannot be dropped, log an error and exit.  This commit
also catches and logs exceptions when scraping the crash path, without
which ceph-crash would just exit if it encountered an error.

Fixes: CVE-2022-3650
Fixes: https://tracker.ceph.com/issues/57967
Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit 130c9626598bc3a75942161e6cce7c664c447382)
src/ceph-crash.in