coredump: move core dump functionality into its own file
This prepares for making core dump functionality optional. The variable "suid_dumpable" and associated functions are left in fs/exec.c because they're used elsewhere, such as in ptrace. Signed-off-by: Alex Kelly <alex.page.kelly@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f34f9d186d
commit
10c28d937e
4 changed files with 689 additions and 645 deletions
|
|
@ -405,6 +405,7 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) {}
|
|||
|
||||
extern void set_dumpable(struct mm_struct *mm, int value);
|
||||
extern int get_dumpable(struct mm_struct *mm);
|
||||
extern int __get_dumpable(unsigned long mm_flags);
|
||||
|
||||
/* get/set_dumpable() values */
|
||||
#define SUID_DUMPABLE_DISABLED 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue