selinux: remove secondary ops call to task_create
Remove secondary ops call to task_create, which is a noop in capabilities. Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
Родитель
d541bbee69
Коммит
af294e41d0
|
@ -3212,12 +3212,6 @@ static int selinux_dentry_open(struct file *file, const struct cred *cred)
|
|||
|
||||
static int selinux_task_create(unsigned long clone_flags)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = secondary_ops->task_create(clone_flags);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return current_has_perm(current, PROCESS__FORK);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче