aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 196c7134bee6..8a94b4eabcaa 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -1396,8 +1396,7 @@ int do_prlimit(struct task_struct *tsk, unsigned int resource,
1396 !capable(CAP_SYS_RESOURCE)) 1396 !capable(CAP_SYS_RESOURCE))
1397 retval = -EPERM; 1397 retval = -EPERM;
1398 if (!retval) 1398 if (!retval)
1399 retval = security_task_setrlimit(tsk->group_leader, 1399 retval = security_task_setrlimit(tsk, resource, new_rlim);
1400 resource, new_rlim);
1401 if (resource == RLIMIT_CPU && new_rlim->rlim_cur == 0) { 1400 if (resource == RLIMIT_CPU && new_rlim->rlim_cur == 0) {
1402 /* 1401 /*
1403 * The caller is asking for an immediate RLIMIT_CPU 1402 * The caller is asking for an immediate RLIMIT_CPU