]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: LSM stacking: LSM: Complete task_alloc hook
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 3 Aug 2017 23:51:40 +0000 (16:51 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 20:54:21 +0000 (16:54 -0400)
The Task alloc hook needs to allocate the data.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/security.c

index 55859bfc19714708c627771aea1a7889d825bb79..003606b7f872c346fa0662a86e61682d5082072b 100644 (file)
@@ -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);
 }