Skip to content

Commit

Permalink
selinux: remove secondary ops call to task_setrlimit
Browse files Browse the repository at this point in the history
Remove secondary ops call to task_setrlimit, 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 ca5143d commit ef76e74
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3367,11 +3367,6 @@ static int selinux_task_getioprio(struct task_struct *p)
static int selinux_task_setrlimit(unsigned int resource, struct rlimit *new_rlim)
{
struct rlimit *old_rlim = current->signal->rlim + resource;
int rc;

rc = secondary_ops->task_setrlimit(resource, new_rlim);
if (rc)
return rc;

/* Control the ability to change the hard limit (whether
lowering or raising it), so that the hard limit can
Expand Down

0 comments on commit ef76e74

Please sign in to comment.