From 44559d36748661d9baf344ccaa7eb19193c284fa Mon Sep 17 00:00:00 2001 From: Casey Schaufler Date: Thu, 3 Aug 2017 16:51:40 -0700 Subject: [PATCH] UBUNTU: SAUCE: LSM stacking: LSM: Complete task_alloc hook The Task alloc hook needs to allocate the data. Signed-off-by: Casey Schaufler Signed-off-by: John Johansen Signed-off-by: Seth Forshee --- security/security.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/security.c b/security/security.c index 55859bfc1971..003606b7f872 100644 --- a/security/security.c +++ b/security/security.c @@ -1375,6 +1375,10 @@ int security_task_create(unsigned long clone_flags) int security_task_alloc(struct task_struct *task, unsigned long clone_flags) { + int rc = lsm_task_alloc(task); + + if (rc) + return rc; return call_int_hook(task_alloc, 0, task, clone_flags); } -- 2.39.5