]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-crash: drop privleges to run as "ceph" user, rather than root 48713/head
authorTim Serong <tserong@suse.com>
Wed, 2 Nov 2022 03:27:47 +0000 (14:27 +1100)
committerTim Serong <tserong@suse.com>
Thu, 3 Nov 2022 05:12:04 +0000 (16:12 +1100)
commit130c9626598bc3a75942161e6cce7c664c447382
tree69120798fe83cb29d55548c78b431f8c013280db
parent45915540559126a652f8d9d105723584cfc63439
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>
src/ceph-crash.in