diff options
| author | Alex Kelly <alex.page.kelly@gmail.com> | 2012-10-04 20:15:24 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 14:05:15 -0400 |
| commit | 179899fd5dc780fe3bcd44d0eb7823e3d855c855 (patch) | |
| tree | a2e7bf0098162e1fa940cad56bb1e99ec10440ca /include | |
| parent | 046d662f481830e652ac34cd112249adde16452a (diff) | |
coredump: update coredump-related headers
Create a new header file, fs/coredump.h, which contains functions only
used by the new coredump.c. It also moves do_coredump to the
include/linux/coredump.h header file, for consistency.
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: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/binfmts.h | 5 | ||||
| -rw-r--r-- | include/linux/coredump.h | 5 | ||||
| -rw-r--r-- | include/linux/sched.h | 1 |
3 files changed, 5 insertions, 6 deletions
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); |
| 133 | extern int prepare_bprm_creds(struct linux_binprm *bprm); | 133 | extern int prepare_bprm_creds(struct linux_binprm *bprm); |
| 134 | extern void install_exec_creds(struct linux_binprm *bprm); | 134 | extern void install_exec_creds(struct linux_binprm *bprm); |
| 135 | #ifdef CONFIG_COREDUMP | ||
| 136 | extern void do_coredump(long signr, int exit_code, struct pt_regs *regs); | ||
| 137 | #else | ||
| 138 | static inline void do_coredump(long signr, int exit_code, struct pt_regs *regs) {} | ||
| 139 | #endif | ||
| 140 | extern void set_binfmt(struct linux_binfmt *new); | 135 | extern void set_binfmt(struct linux_binfmt *new); |
| 141 | extern void free_bprm(struct linux_binprm *); | 136 | extern 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 | */ |
| 12 | extern int dump_write(struct file *file, const void *addr, int nr); | 12 | extern int dump_write(struct file *file, const void *addr, int nr); |
| 13 | extern int dump_seek(struct file *file, loff_t off); | 13 | extern int dump_seek(struct file *file, loff_t off); |
| 14 | #ifdef CONFIG_COREDUMP | ||
| 15 | extern void do_coredump(long signr, int exit_code, struct pt_regs *regs); | ||
| 16 | #else | ||
| 17 | static 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 | ||
| 406 | extern void set_dumpable(struct mm_struct *mm, int value); | 406 | extern void set_dumpable(struct mm_struct *mm, int value); |
| 407 | extern int get_dumpable(struct mm_struct *mm); | 407 | extern int get_dumpable(struct mm_struct *mm); |
| 408 | extern 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 |
