diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2017-07-14 13:38:36 +0300 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-07-18 10:24:03 +0300 |
commit | 3cf29931453215536916d0c4da953fce1911ced3 (patch) | |
tree | 04745a9399692f288e5494acef2e1a912f0e550e /kernel/fork.c | |
parent | c4758fa59285fe4dbfeab4364a6957936d040fbf (diff) | |
download | linux-3cf29931453215536916d0c4da953fce1911ced3.tar.xz |
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( return ERR_PTR(-EINVAL); } - retval = security_task_create(clone_flags); - if (retval) - goto fork_out; - retval = -ENOMEM; p = dup_task_struct(current, node); if (!p) |