mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
[PATCH] auditing ptrace
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
129a84de23
commit
a5cb013da7
3 changed files with 42 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue