Project

General

Profile

Bug #17650

ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps

Added by Patrick Donnelly 5 months ago. Updated 24 days ago.

Status:
Resolved
Priority:
High
Category:
common
Target version:
-
Start date:
02/27/2017
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
Yes

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

rgw - Bug #19089: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumpsPending BackportBrad Hubbard


Related issues

Copied to Backport #17732: jewel: ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps Resolved

History

#1 Updated by Patrick Donnelly 5 months ago

  • Status changed from New to Need Review

#2 Updated by Ken Dreyer 5 months ago

  • Backport set to jewel

#3 Updated by Brad Hubbard 5 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Loic Dachary 5 months ago

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

#5 Updated by Brad Hubbard 2 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF