aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKees Cook <kees.cook@canonical.com>2010-06-28 22:34:04 -0700
committerJohn Rigby <john.rigby@linaro.org>2011-11-16 14:24:23 -0700
commit0c948fba39cbbfe73e72f1b6bfd991caa583c60d (patch)
tree08045bcd2ce194743ec84e8d82d6ea9d3e81cac5 /kernel
parenta530aa9d98ce6fcb8dc6c1721ee743ba0cdc8fd2 (diff)
UBUNTU: ubuntu: Yama - create task_free security callback
The current LSM interface to cred_free is not sufficient for allowing an LSM to track the life and death of a task. This patch adds the task_free hook so that an LSM can clean up resources on task death. Signed-off-by: Kees Cook <kees.cook@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 8e6b6f4fb27..63713786dc0 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -190,6 +190,7 @@ void __put_task_struct(struct task_struct *tsk)
WARN_ON(atomic_read(&tsk->usage));
WARN_ON(tsk == current);
+ security_task_free(tsk);
exit_creds(tsk);
delayacct_tsk_free(tsk);
put_signal_struct(tsk->signal);