Home
last modified time | relevance | path

Searched refs:rlim_max (Results 1 – 25 of 34) sorted by relevance

12

/linux/security/apparmor/
A Dresource.c86 if (profile->rlimits.mask & (1 << resource) && new_rlim->rlim_max > in profile_setrlimit()
87 profile->rlimits.limits[resource].rlim_max) in profile_setrlimit()
89 return audit_resource(profile, resource, new_rlim->rlim_max, NULL, NULL, in profile_setrlimit()
126 new_rlim->rlim_max, peer, in aa_task_setrlimit()
163 rlim->rlim_cur = min(rlim->rlim_max, in __aa_transition_rlimits()
181 rlim->rlim_max = min(rlim->rlim_max, in __aa_transition_rlimits()
182 new->rlimits.limits[j].rlim_max); in __aa_transition_rlimits()
184 rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); in __aa_transition_rlimits()
/linux/tools/testing/selftests/bpf/
A Dbpf_rlimit.h8 .rlim_max = RLIM_INFINITY, in bpf_rlimit_ctor()
25 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in bpf_rlimit_ctor()
A Dbench.c36 .rlim_max = RLIM_INFINITY, in bump_memlock_rlimit()
/linux/tools/testing/selftests/kvm/
A Dkvm_create_max_vcpus.c62 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/tools/testing/selftests/mqueue/
A Dmq_open_tests.c161 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()
A Dmq_perf_tests.c525 cur_limits.rlim_max = RLIM_INFINITY; in increase_limits()
659 (long) saved_limits.rlim_max); in main()
675 (long) cur_limits.rlim_max); in main()
/linux/tools/testing/selftests/powerpc/ptrace/
A Dcore-pkey.c85 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/tools/perf/util/
A Drlimit.c19 rlim.rlim_max *= 4; in rlimit__bump_memlock()
23 rlim.rlim_max /= 2; in rlimit__bump_memlock()
A Devsel.c1977 l.rlim_cur = l.rlim_max; in evsel__increase_rlimit()
1979 l.rlim_cur = l.rlim_max + 1000; in evsel__increase_rlimit()
1980 l.rlim_max = l.rlim_cur; in evsel__increase_rlimit()
/linux/tools/testing/selftests/vm/
A Don-fault-limit.c29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
35 munmap(map, 2 * lims.rlim_max); in test_limit()
A Dmemfd_secret.c214 new.rlim_max = max; in set_cap_limits()
243 mlock_limit_max = rlim.rlim_max; in prepare()
A Dcompaction_test.c179 lim.rlim_max = RLIM_INFINITY; in main()
A Dmlock-random-test.c31 new.rlim_max = max; in set_cap_limits()
/linux/kernel/
A Dsys.c1446 r.rlim_max = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1448 r.rlim_max = r32.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1468 r32.rlim_max = r.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1496 if (x.rlim_max > 0x7FFFFFFF) in SYSCALL_DEFINE2()
1497 x.rlim_max = 0x7FFFFFFF; in SYSCALL_DEFINE2()
1516 if (r.rlim_max > 0x7FFFFFFF) in COMPAT_SYSCALL_DEFINE2()
1517 r.rlim_max = 0x7FFFFFFF; in COMPAT_SYSCALL_DEFINE2()
1520 put_user(r.rlim_max, &rlim->rlim_max)) in COMPAT_SYSCALL_DEFINE2()
1546 rlim64->rlim_max = rlim->rlim_max; in rlim_to_rlim64()
1558 rlim->rlim_max = (unsigned long)rlim64->rlim_max; in rlim64_to_rlim()
[all …]
/linux/include/uapi/linux/
A Dresource.h45 __kernel_ulong_t rlim_max; member
52 __u64 rlim_max; member
/linux/tools/perf/bench/
A Depoll-ctl.c344 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl()
346 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_ctl()
A Depoll-wait.c464 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
466 (uint64_t)prevrl.rlim_max, (uint64_t)rl.rlim_max); in bench_epoll_wait()
/linux/arch/um/os-Linux/
A Dstart_up.c318 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/tools/testing/selftests/rlimits/
A Drlimits-per-userns.c35 .rlim_max = n in setrlimit_nproc()
/linux/tools/bpf/runqslower/
A Drunqslower.c95 .rlim_max = RLIM_INFINITY, in bump_memlock_rlimit()
/linux/tools/testing/selftests/net/
A Dreuseport_bpf.c450 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in main_ctor()
/linux/arch/parisc/kernel/
A Dsys_parisc.c89 stack_base = rlim_stack ? rlim_stack->rlim_max in mmap_upper_limit()
/linux/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c416 rlim_new.rlim_max = rlim_new.rlim_cur + 128; in test_sk_storage_map_stress_free()
/linux/include/linux/sched/
A Dsignal.h743 return READ_ONCE(task->signal->rlim[limit].rlim_max); in task_rlimit_max()
/linux/tools/io_uring/
A Dio_uring-bench.c532 rlim.rlim_max = RLIM_INFINITY; in main()

Completed in 37 milliseconds

12