CHROMIUM: security: Add task_exit LSM hook

Add an early callback when a task exits for the LSM to check the state
before its gone.

BUG=chromium:918980
TEST=Built and tested with KTD LSM.

Signed-off-by: Thomas Garnier <thgarnie@google.com>
Change-Id: Ief558d3dd9222250bee11a37931d34f865acc873
Reviewed-on: https://chromium-review.googlesource.com/1390159
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
4 files changed