aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/coredump.c2
-rw-r--r--fs/coredump.h6
-rw-r--r--fs/exec.c1
-rw-r--r--include/linux/binfmts.h5
-rw-r--r--include/linux/coredump.h5
-rw-r--r--include/linux/sched.h1
-rw-r--r--kernel/signal.c1
7 files changed, 15 insertions, 6 deletions
diff --git a/fs/coredump.c b/fs/coredump.c
index f045bbad6822..c01aa7b9ab5d 100644
--- a/fs/coredump.c
+++ b/fs/coredump.c
@@ -14,6 +14,7 @@
14#include <linux/key.h> 14#include <linux/key.h>
15#include <linux/personality.h> 15#include <linux/personality.h>
16#include <linux/binfmts.h> 16#include <linux/binfmts.h>
17#include <linux/coredump.h>
17#include <linux/utsname.h> 18#include <linux/utsname.h>
18#include <linux/pid_namespace.h> 19#include <linux/pid_namespace.h>
19#include <linux/module.h> 20#include <linux/module.h>
@@ -39,6 +40,7 @@
39 40
40#include <trace/events/task.h> 41#include <trace/events/task.h>
41#include "internal.h" 42#include "internal.h"
43#include "coredump.h"
42 44
43#include <trace/events/sched.h> 45#include <trace/events/sched.h>
44 46
diff --git a/fs/coredump.h b/fs/coredump.h
new file mode 100644
index 000000000000..e39ff072110d
--- /dev/null
+++ b/fs/coredump.h
@@ -0,0 +1,6 @@
1#ifndef _FS_COREDUMP_H
2#define _FS_COREDUMP_H
3
4extern int __get_dumpable(unsigned long mm_flags);
5
6#endif
diff --git a/fs/exec.c b/fs/exec.c
index 48fb26ef8a1b..bd941a1cdbfc 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -63,6 +63,7 @@
63 63
64#include <trace/events/task.h> 64#include <trace/events/task.h>
65#include "internal.h" 65#include "internal.h"
66#include "coredump.h"
66 67
67#include <trace/events/sched.h> 68#include <trace/events/sched.h>
68 69
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
index 00e2e8908953..c7b16ee71415 100644
--- a/include/linux/binfmts.h
+++ b/include/linux/binfmts.h
@@ -132,11 +132,6 @@ extern int copy_strings_kernel(int argc, const char *const *argv,
132 struct linux_binprm *bprm); 132 struct linux_binprm *bprm);
133extern int prepare_bprm_creds(struct linux_binprm *bprm); 133extern int prepare_bprm_creds(struct linux_binprm *bprm);
134extern void install_exec_creds(struct linux_binprm *bprm); 134extern void install_exec_creds(struct linux_binprm *bprm);
135#ifdef CONFIG_COREDUMP
136extern void do_coredump(long signr, int exit_code, struct pt_regs *regs);
137#else
138static inline void do_coredump(long signr, int exit_code, struct pt_regs *regs) {}
139#endif
140extern void set_binfmt(struct linux_binfmt *new); 135extern void set_binfmt(struct linux_binfmt *new);
141extern void free_bprm(struct linux_binprm *); 136extern void free_bprm(struct linux_binprm *);
142 137
diff --git a/include/linux/coredump.h b/include/linux/coredump.h
index ba4b85a6d9b8..42f9752a0a40 100644
--- a/include/linux/coredump.h
+++ b/include/linux/coredump.h
@@ -11,5 +11,10 @@
11 */ 11 */
12extern int dump_write(struct file *file, const void *addr, int nr); 12extern int dump_write(struct file *file, const void *addr, int nr);
13extern int dump_seek(struct file *file, loff_t off); 13extern int dump_seek(struct file *file, loff_t off);
14#ifdef CONFIG_COREDUMP
15extern void do_coredump(long signr, int exit_code, struct pt_regs *regs);
16#else
17static inline void do_coredump(long signr, int exit_code, struct pt_regs *regs) {}
18#endif
14 19
15#endif /* _LINUX_COREDUMP_H */ 20#endif /* _LINUX_COREDUMP_H */
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 9d51e260bde0..9c5612f0374b 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -405,7 +405,6 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) {}
405 405
406extern void set_dumpable(struct mm_struct *mm, int value); 406extern void set_dumpable(struct mm_struct *mm, int value);
407extern int get_dumpable(struct mm_struct *mm); 407extern int get_dumpable(struct mm_struct *mm);
408extern int __get_dumpable(unsigned long mm_flags);
409 408
410/* get/set_dumpable() values */ 409/* get/set_dumpable() values */
411#define SUID_DUMPABLE_DISABLED 0 410#define SUID_DUMPABLE_DISABLED 0
diff --git a/kernel/signal.c b/kernel/signal.c
index 2c681f11b7d2..2ad3f5904bd7 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -17,6 +17,7 @@
17#include <linux/fs.h> 17#include <linux/fs.h>
18#include <linux/tty.h> 18#include <linux/tty.h>
19#include <linux/binfmts.h> 19#include <linux/binfmts.h>
20#include <linux/coredump.h>
20#include <linux/security.h> 21#include <linux/security.h>
21#include <linux/syscalls.h> 22#include <linux/syscalls.h>
22#include <linux/ptrace.h> 23#include <linux/ptrace.h>