mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
selinux: remove secondary ops call to task_setrlimit
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>
This commit is contained in:
parent
ca5143d3ff
commit
ef76e748fa
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue