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

core: set dumpable flag after setuid #11582

Merged
merged 1 commit into from Oct 28, 2016
Merged

Commits on Oct 20, 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>
    batrick committed Oct 20, 2016
    Copy the full SHA
    ff0e521 View commit details
    Browse the repository at this point in the history