diff options
author | Kees Cook <kees.cook@canonical.com> | 2010-06-28 22:34:04 -0700 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-08-21 21:32:04 -0600 |
commit | 10c6a30e23b8b88568387f405ad92b59882ef84f (patch) | |
tree | f188b097ec85855e48bde5876b2dcad76522fe4a /kernel | |
parent | bd10e78e1c20fc2c11b70440b0103ec96a2f040b (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.c | 1 |
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); |