Lines Matching refs:new_rlim
1438 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit() argument
1445 if (new_rlim) { in do_prlimit()
1446 if (new_rlim->rlim_cur > new_rlim->rlim_max) in do_prlimit()
1449 new_rlim->rlim_max > sysctl_nr_open) in do_prlimit()
1456 if (new_rlim) { in do_prlimit()
1461 if (new_rlim->rlim_max > rlim->rlim_max && in do_prlimit()
1465 retval = security_task_setrlimit(tsk, resource, new_rlim); in do_prlimit()
1470 if (new_rlim) in do_prlimit()
1471 *rlim = *new_rlim; in do_prlimit()
1480 if (!retval && new_rlim && resource == RLIMIT_CPU && in do_prlimit()
1481 new_rlim->rlim_cur != RLIM_INFINITY && in do_prlimit()
1492 update_rlimit_cpu(tsk->group_leader, new_rlim->rlim_cur); in do_prlimit()
1665 const struct rlimit64 __user *, new_rlim, in SYSCALL_DEFINE4() argument
1677 if (new_rlim) { in SYSCALL_DEFINE4()
1678 if (copy_from_user(&new64, new_rlim, sizeof(new64))) in SYSCALL_DEFINE4()
1698 ret = do_prlimit(tsk, resource, new_rlim ? &new : NULL, in SYSCALL_DEFINE4()
1713 struct rlimit new_rlim; in SYSCALL_DEFINE2() local
1715 if (copy_from_user(&new_rlim, rlim, sizeof(*rlim))) in SYSCALL_DEFINE2()
1717 return do_prlimit(current, resource, &new_rlim, NULL); in SYSCALL_DEFINE2()