diff options
author | Kees Cook <keescook@chromium.org> | 2011-12-21 12:17:03 -0800 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2012-02-10 09:14:51 +1100 |
commit | 1a2a4d06e1e95260c470ebe3a945f61bbe8c1fd8 (patch) | |
tree | 7167d158749a7acf2ce8bbe1ecd25234b654e813 /security/security.c | |
parent | 9e3ff38647a316e4f92d59b14c8f0eb13b33bb2c (diff) | |
download | op-kernel-dev-1a2a4d06e1e95260c470ebe3a945f61bbe8c1fd8.zip op-kernel-dev-1a2a4d06e1e95260c470ebe3a945f61bbe8c1fd8.tar.gz |
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 <keescook@chromium.org>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index d754249..7d9426b 100644 --- a/security/security.c +++ b/security/security.c @@ -729,6 +729,11 @@ int security_task_create(unsigned long clone_flags) return security_ops->task_create(clone_flags); } +void security_task_free(struct task_struct *task) +{ + security_ops->task_free(task); +} + int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) { return security_ops->cred_alloc_blank(cred, gfp); |