Searched refs:rlimit (Results 1 - 25 of 88) sorted by last modified time

1234

/linux-master/tools/testing/selftests/kvm/
H A Dkvm_create_max_vcpus.c47 struct rlimit rl;
/linux-master/kernel/
H A Dsys.c513 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) &&
1462 struct rlimit *new_rlim, struct rlimit *old_rlim)
1464 struct rlimit *rlim;
1504 * ignores the rlimit.
1524 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim)
1526 struct rlimit value;
1541 struct rlimit r;
1561 struct rlimit r;
1590 struct rlimit __use
[all...]
H A Ducount.c270 long new = atomic_long_add_return(v, &iter->rlimit[type]);
285 long dec = atomic_long_sub_return(v, &iter->rlimit[type]);
298 long dec = atomic_long_sub_return(1, &iter->rlimit[type]);
319 long new = atomic_long_add_return(1, &iter->rlimit[type]);
327 * the rlimit count was previously 0.
336 dec = atomic_long_sub_return(1, &iter->rlimit[type]);
343 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) argument
346 long max = rlimit;
347 if (rlimit > LONG_MAX)
/linux-master/arch/x86/kvm/svm/
H A Dsev.c491 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
/linux-master/tools/testing/selftests/nolibc/
H A Dnolibc-test.c904 struct rlimit rlim = {
1018 CASE_TEST(rlimit); EXPECT_SYSZR(1, test_rlimit()); break;
1251 struct rlimit rlimit = { 0, 0 }; local
1283 setrlimit(RLIMIT_CORE, &rlimit);
/linux-master/tools/testing/selftests/mm/
H A Dcompaction_test.c169 struct rlimit lim;
187 ksft_exit_fail_msg("Failed to set rlimit: %s\n", strerror(errno));
/linux-master/tools/testing/selftests/core/
H A Dclose_range_test.c239 struct rlimit rlimit; local
262 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit));
263 rlimit.rlim_cur = 25;
264 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit));
307 struct rlimit rlimit; local
330 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit));
331 rlimit.rlim_cur = 25;
332 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit));
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c271 struct rlimit limit;
H A Dbpf.c149 struct rlimit rlim;
/linux-master/tools/include/nolibc/
H A Dsys.h904 * int getrlimit(int resource, struct rlimit *rlim);
905 * int setrlimit(int resource, const struct rlimit *rlim);
916 int getrlimit(int resource, struct rlimit *rlim)
929 int setrlimit(int resource, const struct rlimit *rlim)
/linux-master/tools/bpf/bpftool/
H A Dcommon.c86 * Libbpf also offers to probe for memcg-based accounting vs rlimit, but does
90 * Instead, we can probe by lowering the process-based rlimit to 0, trying to
91 * load a BPF object, and resetting the rlimit. If the load succeeds then
95 * applications might attempt to load items while the rlimit is at 0. Given
100 struct rlimit rlim_init, rlim_cur_zero = {};
132 /* reset soft rlimit to its initial value */
144 struct rlimit rinf = { RLIM_INFINITY, RLIM_INFINITY };
/linux-master/security/selinux/
H A Dhooks.c2474 struct rlimit *rlim, *initrlim;
2509 update_rlimit_cpu(current, rlimit(RLIMIT_CPU));
4203 struct rlimit *new_rlim)
4205 struct rlimit *old_rlim = p->signal->rlim + resource;
/linux-master/security/
H A Dsecurity.c3437 * security_task_setrlimit() - Check if setting a new rlimit value is allowed
3449 struct rlimit *new_rlim)
/linux-master/security/apparmor/
H A Dlsm.c999 unsigned int resource, struct rlimit *new_rlim)
/linux-master/net/core/
H A Dskbuff.c1633 rlim = rlimit(RLIMIT_MEMLOCK);
/linux-master/mm/
H A Dmmap.c210 * Check against rlimit here. If this check is done later after the test
215 if (check_data_rlimit(rlimit(RLIMIT_DATA), brk, mm->start_brk,
1173 limit_pages = rlimit(RLIMIT_MEMLOCK);
1942 if (size > rlimit(RLIMIT_STACK))
3442 if (mm->total_vm + npages > rlimit(RLIMIT_AS) >> PAGE_SHIFT)
3446 mm->data_vm + npages > rlimit(RLIMIT_DATA) >> PAGE_SHIFT) {
3448 if (rlimit(RLIMIT_DATA) == 0 &&
3455 rlimit(RLIMIT_DATA),
/linux-master/kernel/events/
H A Dcore.c6606 lock_limit = rlimit(RLIMIT_MEMLOCK);
/linux-master/ipc/
H A Dshm.c1195 if (cmd == SHM_LOCK && !rlimit(RLIMIT_MEMLOCK)) {
/linux-master/io_uring/
H A Drsrc.c51 page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
713 if (nr_args > rlimit(RLIMIT_NOFILE))
H A Dnet.c1503 accept->nofile = rlimit(RLIMIT_NOFILE);
1599 sock->nofile = rlimit(RLIMIT_NOFILE);
/linux-master/include/linux/
H A Dsecurity.h40 struct rlimit;
459 struct rlimit *new_rlim);
1259 struct rlimit *new_rlim)
H A Dlsm_hook_defs.h243 struct rlimit *new_rlim)
/linux-master/fs/
H A Dread_write.c1650 loff_t limit = rlimit(RLIMIT_FSIZE);
H A Dexec.c1487 /* Store any stack rlimit changes before starting thread. */
1929 is_rlimit_overlimit(current_ucounts(), UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC))) {
H A Dcoredump.c334 rlimit(RLIMIT_CORE));
519 current->signal->rlim[RLIMIT_CORE] = (struct rlimit){1, 1};
542 .limit = rlimit(RLIMIT_CORE),

Completed in 520 milliseconds

1234