Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jewel: ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps #11736

Merged
1 commit merged into from Nov 14, 2016

Commits on Nov 2, 2016

  1. core: set dumpable flag after setuid

    When ceph-* drops drops privileges via setuid, core dumps are no longer
    generated because its DUMPABLE flag is cleared. We have to manually
    turn that back on.
    
    From prctl(2):
    
          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)).
    
    Fixes: http://tracker.ceph.com/issues/17650
    
    Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
    (cherry picked from commit ff0e521)
    batrick authored and Abhishek Varshney committed Nov 2, 2016
    Configuration menu
    Copy the full SHA
    3667c56 View commit details
    Browse the repository at this point in the history