aboutsummaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorKees Cook <kees.cook@canonical.com>2010-06-28 22:34:04 -0700
committerLeann Ogasawara <leann.ogasawara@canonical.com>2010-08-11 07:42:01 -0700
commit58c06d53b968885e1faa24ff25a729f36b7684dc (patch)
tree2664ca1f07d8cb81b4a1fe6ed02b5d0a43e351ae /security/security.c
parente667051aaa0f0c7e7d953a10c33b1feae69493b5 (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 'security/security.c')
-rw-r--r--security/security.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c
index 6ba84a8c74e..81b1152c32b 100644
--- a/security/security.c
+++ b/security/security.c
@@ -705,6 +705,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);