Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef76e748 authored by James Morris's avatar James Morris
Browse files

selinux: remove secondary ops call to task_setrlimit



Remove secondary ops call to task_setrlimit, which is
a noop in capabilities.

Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Acked-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent ca5143d3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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