]> git.proxmox.com Git - mirror_ubuntu-bionic-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>
Tue, 10 Apr 2018 18:06:13 +0000 (13:06 -0500)
BugLink: http://bugs.launchpad.net/bugs/1763062
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/fork.c

index ef641b54e22b11f35629934705511d85a256d3eb..dd8b59857b71245254f19b11248dc292da03f1ae 100644 (file)
@@ -1726,6 +1726,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);