Project

General

Profile

Actions

Bug #17650

closed

ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps

Added by Patrick Donnelly over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
common
Target version:
-
% Done:

100%

Source:
Development
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I observed while using ceph-ansible on Linode that ceph daemons would not produce coredumps. This was caused by the DUMPABLE flag being cleared by prctl. From prctl(2):

       PR_SET_DUMPABLE (since Linux 2.3.20)

          ...

          Normally, this flag is set to 1.  However, it is reset to the current value contained in the file /proc/sys/fs/suid_dumpable (which by default has the value 0), in the fol‐
          lowing circumstances:

          *  The process's effective user or group ID is changed.

          *  The process's filesystem user or group ID is changed (see credentials(7)).

          *  The process executes (execve(2)) a set-user-ID or set-group-ID program, or a program that has capabilities (see capabilities(7)).

I have a patch ready to submit after creating this issue.


Subtasks 1 (0 open1 closed)

rgw - Bug #19089: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumpsResolvedBrad Hubbard02/27/2017

Actions

Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #17732: jewel: ceph daemons DUMPABLE flag is cleared by setuid preventing coredumpsResolvedAbhishek VarshneyActions
Actions #1

Updated by Patrick Donnelly over 7 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Ken Dreyer over 7 years ago

  • Backport set to jewel
Actions #3

Updated by Brad Hubbard over 7 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Loïc Dachary over 7 years ago

  • Copied to Backport #17732: jewel: ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps added
Actions #5

Updated by Brad Hubbard over 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF