diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-18 16:54:12 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-18 16:54:12 -0400 |
| commit | 19fa95e9e999ee2b0d7adfbd1a687b136afcd6f1 (patch) | |
| tree | 99bd4cf3f47965b52f43a5fde01b2e53e01f77ba /kernel/signal.c | |
| parent | ba483d574b43b05fa4c78550b874c7e24424ff2a (diff) | |
| parent | 0107b3cf3225aed6ddde4fa8dbcd4ed643b34f4d (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/dwmw2/audit-2.6
Diffstat (limited to 'kernel/signal.c')
| -rw-r--r-- | kernel/signal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index b3c24c732c5a..c89821b69ae3 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include <linux/ptrace.h> | 24 | #include <linux/ptrace.h> |
| 25 | #include <linux/posix-timers.h> | 25 | #include <linux/posix-timers.h> |
| 26 | #include <linux/signal.h> | 26 | #include <linux/signal.h> |
| 27 | #include <linux/audit.h> | ||
| 27 | #include <asm/param.h> | 28 | #include <asm/param.h> |
| 28 | #include <asm/uaccess.h> | 29 | #include <asm/uaccess.h> |
| 29 | #include <asm/unistd.h> | 30 | #include <asm/unistd.h> |
| @@ -667,7 +668,11 @@ static int check_kill_permission(int sig, struct siginfo *info, | |||
| 667 | && (current->uid ^ t->suid) && (current->uid ^ t->uid) | 668 | && (current->uid ^ t->suid) && (current->uid ^ t->uid) |
| 668 | && !capable(CAP_KILL)) | 669 | && !capable(CAP_KILL)) |
| 669 | return error; | 670 | return error; |
| 670 | return security_task_kill(t, info, sig); | 671 | |
| 672 | error = security_task_kill(t, info, sig); | ||
| 673 | if (!error) | ||
| 674 | audit_signal_info(sig, t); /* Let audit system see the signal */ | ||
| 675 | return error; | ||
| 671 | } | 676 | } |
| 672 | 677 | ||
| 673 | /* forward decl */ | 678 | /* forward decl */ |
