The patch titled capabilities: reset current->pdeath_signal when increasing capabilities has been added to the -mm tree. Its filename is capabilities-reset-current-pdeath_signal-when-increasing-capabilities.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: capabilities: reset current->pdeath_signal when increasing capabilities From: "Serge E. Hallyn" <serge@xxxxxxxxxx> If running a program which has file capabilities which are not a subset of the capabilities of the current task, reset pdeath_signal = 0 to prevent the task parent from (deliberately) signaling a more privileged app. Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx> Cc: Andrew Morgan <morgan@xxxxxxxxxx> Cc: Casey Schaufler <casey@xxxxxxxxxxxxxxxx> Cc: Chris Wright <chrisw@xxxxxxxxxxxx> Cc: James Morris <jmorris@xxxxxxxxx> Cc: Stephen Smalley <sds@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- security/commoncap.c | 1 + 1 files changed, 1 insertion(+) diff -puN security/commoncap.c~capabilities-reset-current-pdeath_signal-when-increasing-capabilities security/commoncap.c --- a/security/commoncap.c~capabilities-reset-current-pdeath_signal-when-increasing-capabilities +++ a/security/commoncap.c @@ -267,6 +267,7 @@ void cap_bprm_apply_creds (struct linux_ if (bprm->e_uid != current->uid || bprm->e_gid != current->gid || !cap_issubset (new_permitted, current->cap_permitted)) { set_dumpable(current->mm, suid_dumpable); + current->pdeath_signal = 0; if (unsafe & ~LSM_UNSAFE_PTRACE_CAP) { if (!capable(CAP_SETUID)) { _ Patches currently in -mm which might be from serge@xxxxxxxxxx are memoryless-nodes-generic-management-of-nodemasks-for-various-purposes-fix.patch ifdef-struct-task_structsecurity.patch capabilities-reset-current-pdeath_signal-when-increasing-capabilities.patch ecryptfs-add-key-list-structure-search-keyring.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html