Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330151
b: refs/heads/master
c: 179899f
h: refs/heads/master
i:
  330149: 719280e
  330147: ec5291c
  330143: 9a86118
v: v3
  • Loading branch information
Alex Kelly authored and Linus Torvalds committed Oct 5, 2012
1 parent 9e3fa9d commit a0daa89
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 046d662f481830e652ac34cd112249adde16452a
refs/heads/master: 179899fd5dc780fe3bcd44d0eb7823e3d855c855
2 changes: 2 additions & 0 deletions trunk/fs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/key.h>
#include <linux/personality.h>
#include <linux/binfmts.h>
#include <linux/coredump.h>
#include <linux/utsname.h>
#include <linux/pid_namespace.h>
#include <linux/module.h>
Expand All @@ -39,6 +40,7 @@

#include <trace/events/task.h>
#include "internal.h"
#include "coredump.h"

#include <trace/events/sched.h>

Expand Down
6 changes: 6 additions & 0 deletions trunk/fs/coredump.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _FS_COREDUMP_H
#define _FS_COREDUMP_H

extern int __get_dumpable(unsigned long mm_flags);

#endif
1 change: 1 addition & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

#include <trace/events/task.h>
#include "internal.h"
#include "coredump.h"

#include <trace/events/sched.h>

Expand Down
5 changes: 0 additions & 5 deletions trunk/include/linux/binfmts.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@ extern int copy_strings_kernel(int argc, const char *const *argv,
struct linux_binprm *bprm);
extern int prepare_bprm_creds(struct linux_binprm *bprm);
extern void install_exec_creds(struct linux_binprm *bprm);
#ifdef CONFIG_COREDUMP
extern void do_coredump(long signr, int exit_code, struct pt_regs *regs);
#else
static inline void do_coredump(long signr, int exit_code, struct pt_regs *regs) {}
#endif
extern void set_binfmt(struct linux_binfmt *new);
extern void free_bprm(struct linux_binprm *);

Expand Down
5 changes: 5 additions & 0 deletions trunk/include/linux/coredump.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
*/
extern int dump_write(struct file *file, const void *addr, int nr);
extern int dump_seek(struct file *file, loff_t off);
#ifdef CONFIG_COREDUMP
extern void do_coredump(long signr, int exit_code, struct pt_regs *regs);
#else
static inline void do_coredump(long signr, int exit_code, struct pt_regs *regs) {}
#endif

#endif /* _LINUX_COREDUMP_H */
1 change: 0 additions & 1 deletion trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ 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
Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/fs.h>
#include <linux/tty.h>
#include <linux/binfmts.h>
#include <linux/coredump.h>
#include <linux/security.h>
#include <linux/syscalls.h>
#include <linux/ptrace.h>
Expand Down

0 comments on commit a0daa89

Please sign in to comment.