security: create task_free security callback
authorKees Cook <keescook@chromium.org>
Wed, 21 Dec 2011 20:17:03 +0000 (12:17 -0800)
committerJames Morris <jmorris@namei.org>
Thu, 9 Feb 2012 22:14:51 +0000 (09:14 +1100)
commit1a2a4d06e1e95260c470ebe3a945f61bbe8c1fd8
tree7167d158749a7acf2ce8bbe1ecd25234b654e813
parent9e3ff38647a316e4f92d59b14c8f0eb13b33bb2c
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>
include/linux/security.h
kernel/fork.c
security/capability.c
security/security.c