[PATCH] shrink dentry struct
[linux-2.6.git] / security / commoncap.c
index 849b8c338ee8fd99185188b383b137cad76406f5..04c12f58d656200b29c1e0c60c31e7ac62349741 100644 (file)
@@ -149,7 +149,7 @@ void cap_bprm_apply_creds (struct linux_binprm *bprm, int unsafe)
 
        if (bprm->e_uid != current->uid || bprm->e_gid != current->gid ||
            !cap_issubset (new_permitted, current->cap_permitted)) {
-               current->mm->dumpable = 0;
+               current->mm->dumpable = suid_dumpable;
 
                if (unsafe & ~LSM_UNSAFE_PTRACE_CAP) {
                        if (!capable(CAP_SETUID)) {