diff options
author | Kees Cook <kees.cook@canonical.com> | 2010-06-28 22:34:04 -0700 |
---|---|---|
committer | Leann Ogasawara <leann.ogasawara@canonical.com> | 2010-08-20 16:01:10 -0700 |
commit | 0fe717d80caeabfd7881053696760e4f2f5934db (patch) | |
tree | c4b7e572329b60e0cc18fff5c49ef4dcb6f9127c /kernel | |
parent | 557a702d18a384773df6a8348e6e98c28a7df7ec (diff) |
UBUNTU: SAUCE: security: 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: Leann Ogasawara <leann.ogasawara@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 b6cce14ba047..7fbc5e3a9609 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -183,6 +183,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); |