diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-03-20 18:58:35 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2007-05-11 11:38:25 +0200 |
commit | a5cb013da773a67ee48d1c19e96436c22a73a7eb (patch) | |
tree | 8832d105c4742674423bd50352b8a4805c44fecc /kernel/ptrace.c | |
parent | locks: fix F_GETLK regression (failure to find conflicts) (diff) | |
download | linux-a5cb013da773a67ee48d1c19e96436c22a73a7eb.tar.xz linux-a5cb013da773a67ee48d1c19e96436c22a73a7eb.zip |
[PATCH] auditing ptrace
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 4d50e06fd745..ad7949a589dd 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -18,6 +18,7 @@ #include <linux/ptrace.h> #include <linux/security.h> #include <linux/signal.h> +#include <linux/audit.h> #include <asm/pgtable.h> #include <asm/uaccess.h> @@ -161,6 +162,8 @@ int ptrace_attach(struct task_struct *task) { int retval; + audit_ptrace(task); + retval = -EPERM; if (task->pid <= 1) goto out; |