diff options
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -48,6 +48,7 @@ | |||
48 | #include <linux/syscalls.h> | 48 | #include <linux/syscalls.h> |
49 | #include <linux/rmap.h> | 49 | #include <linux/rmap.h> |
50 | #include <linux/acct.h> | 50 | #include <linux/acct.h> |
51 | #include <linux/cn_proc.h> | ||
51 | 52 | ||
52 | #include <asm/uaccess.h> | 53 | #include <asm/uaccess.h> |
53 | #include <asm/mmu_context.h> | 54 | #include <asm/mmu_context.h> |
@@ -1096,6 +1097,7 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs) | |||
1096 | fput(bprm->file); | 1097 | fput(bprm->file); |
1097 | bprm->file = NULL; | 1098 | bprm->file = NULL; |
1098 | current->did_exec = 1; | 1099 | current->did_exec = 1; |
1100 | proc_exec_connector(current); | ||
1099 | return retval; | 1101 | return retval; |
1100 | } | 1102 | } |
1101 | read_lock(&binfmt_lock); | 1103 | read_lock(&binfmt_lock); |
@@ -1509,7 +1511,7 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) | |||
1509 | goto close_fail; | 1511 | goto close_fail; |
1510 | if (!file->f_op->write) | 1512 | if (!file->f_op->write) |
1511 | goto close_fail; | 1513 | goto close_fail; |
1512 | if (do_truncate(file->f_dentry, 0) != 0) | 1514 | if (do_truncate(file->f_dentry, 0, file) != 0) |
1513 | goto close_fail; | 1515 | goto close_fail; |
1514 | 1516 | ||
1515 | retval = binfmt->core_dump(signr, regs, file); | 1517 | retval = binfmt->core_dump(signr, regs, file); |