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-10-17 09:49:10 -0600
commitdf3de15fe6c20bd2032790adbbae8eccf0f38b61 (patch)
tree12fb5c4478480db8a818a2548d0b56638f606ba3 /kernel
parent6bf2af07115510e9c106f571414aea36cdd4522d (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 0276c30401a..eff7351dc4b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -191,6 +191,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);