Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ipc.h File Reference
#include <linux/sched.h>

Go to the source code of this file.

Functions

int aa_may_ptrace (struct task_struct *tracer_task, struct aa_profile *tracer, struct aa_profile *tracee, unsigned int mode)
 
int aa_ptrace (struct task_struct *tracer, struct task_struct *tracee, unsigned int mode)
 

Function Documentation

int aa_may_ptrace ( struct task_struct tracer_task,
struct aa_profile tracer,
struct aa_profile tracee,
unsigned int  mode 
)

aa_may_ptrace - test if tracer task can trace the tracee : task who will do the tracing (NOT NULL) : profile of the task doing the tracing (NOT NULL) : task to be traced : whether PTRACE_MODE_READ || PTRACE_MODE_ATTACH

Returns: %0 else error code if permission denied or error

Definition at line 64 of file ipc.c.

int aa_ptrace ( struct task_struct tracer,
struct task_struct tracee,
unsigned int  mode 
)

aa_ptrace - do ptrace permission check and auditing : task doing the tracing (NOT NULL) : task being traced (NOT NULL) : ptrace mode either PTRACE_MODE_READ || PTRACE_MODE_ATTACH

Returns: %0 else error code if permission denied or error

Definition at line 86 of file ipc.c.