]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: LSM stacking: fixup initialize task->security
authorJohn Johansen <john.johansen@canonical.com>
Tue, 26 Sep 2017 19:03:19 +0000 (15:03 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 20:54:22 +0000 (16:54 -0400)
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/fork.c

index 9ee3c7cc98508ea450b3097748727b36b56bb1a7..8efc6b4466e3bfbb76b13a2206d7cba69cde1b53 100644 (file)
@@ -1718,6 +1718,9 @@ static __latent_entropy struct task_struct *copy_process(
        p->sequential_io        = 0;
        p->sequential_io_avg    = 0;
 #endif
+#ifdef CONFIG_SECURITY
+       p->security = NULL;
+#endif
 
        /* Perform scheduler related setup. Assign this task to a CPU. */
        retval = sched_fork(clone_flags, p);