diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2017-07-14 06:38:36 -0400 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-07-18 03:24:03 -0400 |
commit | 3cf29931453215536916d0c4da953fce1911ced3 (patch) | |
tree | 04745a9399692f288e5494acef2e1a912f0e550e /kernel/fork.c | |
parent | c4758fa59285fe4dbfeab4364a6957936d040fbf (diff) |
LSM: Remove security_task_create() hook.
Since commit a79be238600d1a03 ("selinux: Use task_alloc hook rather than
task_create hook") changed to use task_alloc hook, task_create hook is
no longer used.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index aa1076c5e4a9..3a13a940a6ea 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1568,10 +1568,6 @@ static __latent_entropy struct task_struct *copy_process( | |||
1568 | return ERR_PTR(-EINVAL); | 1568 | return ERR_PTR(-EINVAL); |
1569 | } | 1569 | } |
1570 | 1570 | ||
1571 | retval = security_task_create(clone_flags); | ||
1572 | if (retval) | ||
1573 | goto fork_out; | ||
1574 | |||
1575 | retval = -ENOMEM; | 1571 | retval = -ENOMEM; |
1576 | p = dup_task_struct(current, node); | 1572 | p = dup_task_struct(current, node); |
1577 | if (!p) | 1573 | if (!p) |