/linux-master/tools/testing/selftests/kvm/ |
H A D | kvm_create_max_vcpus.c | 47 struct rlimit rl;
|
/linux-master/kernel/ |
H A D | sys.c | 513 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 D | ucount.c | 270 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 D | sev.c | 491 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
|
/linux-master/tools/testing/selftests/nolibc/ |
H A D | nolibc-test.c | 904 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 D | compaction_test.c | 169 struct rlimit lim; 187 ksft_exit_fail_msg("Failed to set rlimit: %s\n", strerror(errno));
|
/linux-master/tools/testing/selftests/core/ |
H A D | close_range_test.c | 239 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 D | libbpf.c | 271 struct rlimit limit;
|
H A D | bpf.c | 149 struct rlimit rlim;
|
/linux-master/tools/include/nolibc/ |
H A D | sys.h | 904 * 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 D | common.c | 86 * 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 D | hooks.c | 2474 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 D | security.c | 3437 * security_task_setrlimit() - Check if setting a new rlimit value is allowed 3449 struct rlimit *new_rlim)
|
/linux-master/security/apparmor/ |
H A D | lsm.c | 999 unsigned int resource, struct rlimit *new_rlim)
|
/linux-master/net/core/ |
H A D | skbuff.c | 1633 rlim = rlimit(RLIMIT_MEMLOCK);
|
/linux-master/mm/ |
H A D | mmap.c | 210 * 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 D | core.c | 6606 lock_limit = rlimit(RLIMIT_MEMLOCK);
|
/linux-master/ipc/ |
H A D | shm.c | 1195 if (cmd == SHM_LOCK && !rlimit(RLIMIT_MEMLOCK)) {
|
/linux-master/io_uring/ |
H A D | rsrc.c | 51 page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; 713 if (nr_args > rlimit(RLIMIT_NOFILE))
|
H A D | net.c | 1503 accept->nofile = rlimit(RLIMIT_NOFILE); 1599 sock->nofile = rlimit(RLIMIT_NOFILE);
|
/linux-master/include/linux/ |
H A D | security.h | 40 struct rlimit; 459 struct rlimit *new_rlim); 1259 struct rlimit *new_rlim)
|
H A D | lsm_hook_defs.h | 243 struct rlimit *new_rlim)
|
/linux-master/fs/ |
H A D | read_write.c | 1650 loff_t limit = rlimit(RLIMIT_FSIZE);
|
H A D | exec.c | 1487 /* Store any stack rlimit changes before starting thread. */ 1929 is_rlimit_overlimit(current_ucounts(), UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC))) {
|
H A D | coredump.c | 334 rlimit(RLIMIT_CORE)); 519 current->signal->rlim[RLIMIT_CORE] = (struct rlimit){1, 1}; 542 .limit = rlimit(RLIMIT_CORE),
|