/linux-6.6.21/security/apparmor/ |
D | resource.c | 96 if (rules->rlimits.mask & (1 << resource) && new_rlim->rlim_max > in profile_setrlimit() 97 rules->rlimits.limits[resource].rlim_max) in profile_setrlimit() 99 return audit_resource(subj_cred, profile, resource, new_rlim->rlim_max, in profile_setrlimit() 138 new_rlim->rlim_max, peer, in aa_task_setrlimit() 179 rlim->rlim_cur = min(rlim->rlim_max, in __aa_transition_rlimits() 200 rlim->rlim_max = min(rlim->rlim_max, in __aa_transition_rlimits() 201 rules->rlimits.limits[j].rlim_max); in __aa_transition_rlimits() 203 rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); in __aa_transition_rlimits()
|
D | policy_unpack.c | 632 rules->rlimits.limits[a].rlim_max = tmp2; in unpack_rlimits()
|
/linux-6.6.21/tools/testing/selftests/kvm/ |
D | kvm_create_max_vcpus.c | 62 if (rl.rlim_max < nr_fds_wanted) { in main() 63 int old_rlim_max = rl.rlim_max; in main() 64 rl.rlim_max = nr_fds_wanted; in main()
|
/linux-6.6.21/tools/perf/util/ |
D | rlimit.c | 19 rlim.rlim_max *= 4; in rlimit__bump_memlock() 23 rlim.rlim_max /= 2; in rlimit__bump_memlock()
|
D | evsel.c | 2002 l.rlim_cur = l.rlim_max; in evsel__increase_rlimit() 2004 l.rlim_cur = l.rlim_max + 1000; in evsel__increase_rlimit() 2005 l.rlim_max = l.rlim_cur; in evsel__increase_rlimit()
|
/linux-6.6.21/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 161 cur_limits.rlim_max = 16384; in validate_current_settings() 301 (long) saved_limits.rlim_max); in main() 317 printf("\tRLIMIT_MSGQUEUE(hard):\t\t%ld\n", (long) cur_limits.rlim_max); in main() 391 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; in main() 408 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * in main() 427 cur_max_msgsize = cur_limits.rlim_max >> 4; in main()
|
D | mq_perf_tests.c | 528 cur_limits.rlim_max = RLIM_INFINITY; in increase_limits() 663 (long) saved_limits.rlim_max); in main() 679 (long) cur_limits.rlim_max); in main()
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | on-fault-limit.c | 25 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit() 31 munmap(map, 2 * lims.rlim_max); in test_limit()
|
D | memfd_secret.c | 217 new.rlim_max = max; in set_cap_limits() 246 mlock_limit_max = rlim.rlim_max; in prepare()
|
D | compaction_test.c | 179 lim.rlim_max = RLIM_INFINITY; in main()
|
D | mlock-random-test.c | 32 new.rlim_max = max; in set_cap_limits()
|
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 85 if (rlim.rlim_max != RLIM_INFINITY && in increase_core_file_limit() 86 rlim.rlim_max < CORE_FILE_LIMIT) in increase_core_file_limit() 87 rlim.rlim_max = CORE_FILE_LIMIT; in increase_core_file_limit() 99 if (rlim.rlim_max != RLIM_INFINITY && in increase_core_file_limit() 100 rlim.rlim_max < CORE_FILE_LIMIT) in increase_core_file_limit() 101 rlim.rlim_max = CORE_FILE_LIMIT; in increase_core_file_limit()
|
/linux-6.6.21/include/uapi/linux/ |
D | resource.h | 45 __kernel_ulong_t rlim_max; member 52 __u64 rlim_max; member
|
/linux-6.6.21/kernel/ |
D | sys.c | 1466 if (new_rlim->rlim_cur > new_rlim->rlim_max) in do_prlimit() 1469 new_rlim->rlim_max > sysctl_nr_open) in do_prlimit() 1481 if (new_rlim->rlim_max > rlim->rlim_max && in do_prlimit() 1545 if (r32.rlim_max == COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2() 1546 r.rlim_max = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2() 1548 r.rlim_max = r32.rlim_max; in COMPAT_SYSCALL_DEFINE2() 1565 if (r.rlim_max > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2() 1566 r32.rlim_max = COMPAT_RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2() 1568 r32.rlim_max = r.rlim_max; in COMPAT_SYSCALL_DEFINE2() 1596 if (x.rlim_max > 0x7FFFFFFF) in SYSCALL_DEFINE2() [all …]
|
/linux-6.6.21/tools/perf/bench/ |
D | epoll-ctl.c | 358 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl() 360 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_ctl()
|
D | epoll-wait.c | 478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait() 480 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_wait()
|
/linux-6.6.21/arch/um/os-Linux/ |
D | start_up.c | 318 if (lim.rlim_max == RLIM_INFINITY) in check_coredump_limit() 321 os_info("%llu\n", (unsigned long long)lim.rlim_max); in check_coredump_limit()
|
/linux-6.6.21/tools/testing/selftests/rlimits/ |
D | rlimits-per-userns.c | 35 .rlim_max = n in setrlimit_nproc()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 448 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in main_ctor()
|
/linux-6.6.21/arch/parisc/kernel/ |
D | sys_parisc.c | 85 stack_base = rlim_stack ? rlim_stack->rlim_max in mmap_upper_limit()
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | common.c | 122 rlim_cur_zero.rlim_max = rlim_init.rlim_max; in known_to_need_rlimit()
|
/linux-6.6.21/include/linux/sched/ |
D | signal.h | 768 return READ_ONCE(task->signal->rlim[limit].rlim_max); in task_rlimit_max()
|
/linux-6.6.21/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 412 rlim_new.rlim_max = rlim_new.rlim_cur + 128; in test_sk_storage_map_stress_free()
|
/linux-6.6.21/include/linux/ |
D | compat.h | 257 compat_ulong_t rlim_max; member
|
/linux-6.6.21/tools/lib/bpf/ |
D | bpf.c | 158 rlim.rlim_cur = rlim.rlim_max = memlock_rlim; in bump_rlimit_memlock()
|