Skip to content

Commit

Permalink
selinux: remove secondary ops call to task_create
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Jan 29, 2009
1 parent d541bbe commit af294e4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit af294e4

Please sign in to comment.