/linux-4.1.27/include/linux/ |
H A D | resource.h | 11 struct rlimit *new_rlim, struct rlimit *old_rlim);
|
H A D | syscalls.h | 37 struct rlimit; 645 struct rlimit __user *rlim); 647 asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim); 650 struct rlimit __user *rlim);
|
H A D | security.h | 33 struct rlimit; 1617 struct rlimit *new_rlim); 1896 struct rlimit *new_rlim); 2493 struct rlimit *new_rlim) security_task_setrlimit()
|
H A D | sched.h | 724 struct rlimit rlim[RLIM_NLIMITS]; 3087 static inline unsigned long rlimit(unsigned int limit) rlimit() function
|
/linux-4.1.27/security/apparmor/include/ |
H A D | resource.h | 25 /* struct aa_rlimit - rlimit settings for the profile 27 * @limits: rlimit values that override task limits 34 struct rlimit limits[RLIM_NLIMITS]; 41 unsigned int resource, struct rlimit *new_rlim);
|
/linux-4.1.27/include/asm-generic/ |
H A D | resource.h | 8 * boot-time rlimit defaults for the init task:
|
/linux-4.1.27/security/apparmor/ |
H A D | resource.c | 23 * Table of rlimit names: we generate it from resource.h. 37 audit_log_format(ab, " rlimit=%s value=%lu", audit_cb() 44 * @resoure: rlimit being auditing 72 * rlimit resource can vary based on architecture, map the compiled policy 81 * aa_task_setrlimit - test permission to set an rlimit 92 unsigned int resource, struct rlimit *new_rlim) aa_task_setrlimit() 124 struct rlimit *rlim, *initrlim; __aa_transition_rlimits()
|
H A D | Makefile | 29 # Build a lower case string table of rlimit names.
|
H A D | apparmorfs.c | 810 AA_FS_DIR("rlimit", aa_fs_entry_rlimit),
|
H A D | lsm.c | 607 unsigned int resource, struct rlimit *new_rlim) apparmor_task_setrlimit()
|
/linux-4.1.27/drivers/hwmon/pmbus/ |
H A D | lm25066.c | 216 u16 rlimit; /* Maximum register value */ member in struct:lm25066_data 384 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); lm25066_write_word_data() 389 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); lm25066_write_word_data() 396 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); lm25066_write_word_data() 405 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); lm25066_write_word_data() 413 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); lm25066_write_word_data() 467 data->rlimit = 0x0fff; lm25066_probe() 472 data->rlimit = 0xffff; lm25066_probe() 476 data->rlimit = 0x0fff; lm25066_probe()
|
/linux-4.1.27/include/linux/sched/ |
H A D | prio.h | 45 * Convert nice value [19,-20] to rlimit style value [1,40]. 53 * Convert rlimit style value [1,40] to nice value [-20, 19].
|
/linux-4.1.27/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 50 struct rlimit saved_limits, cur_limits; 61 static inline void getr(int type, struct rlimit *rlim); 62 static inline void setr(int type, struct rlimit *rlim); 137 static inline void getr(int type, struct rlimit *rlim) getr() 143 static inline void setr(int type, struct rlimit *rlim) setr() 154 printf("Current rlimit value for POSIX message queue bytes is " validate_current_settings() 167 "with the current rlimit values.\n\n"); validate_current_settings() 179 "with the current rlimit values in case this is " validate_current_settings() 415 "defaults would\nexceed rlimit:" main() 420 * Test #2 - open with an attr struct that exceeds rlimit main() 431 printf("Queue open in excess of rlimit max when euid = 0 " main() 434 printf("Queue open in excess of rlimit max when euid = 0 " main() 469 printf("Queue open in excess of rlimit max when euid = 99 " main() 472 printf("Queue open in excess of rlimit max when euid = 99 " main()
|
H A D | mq_perf_tests.c | 90 struct rlimit saved_limits, cur_limits; 157 static inline void getr(int type, struct rlimit *rlim); 158 static inline void setr(int type, struct rlimit *rlim); 264 static inline void getr(int type, struct rlimit *rlim) getr() 270 static inline void setr(int type, struct rlimit *rlim) setr()
|
/linux-4.1.27/arch/tile/mm/ |
H A D | mmap.c | 34 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base() 80 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) { arch_pick_mmap_layout()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | mmap.c | 62 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy() 86 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base()
|
/linux-4.1.27/arch/powerpc/mm/ |
H A D | mmap.c | 50 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy() 71 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base()
|
/linux-4.1.27/arch/arm64/mm/ |
H A D | mmap.c | 44 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy() 61 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base()
|
/linux-4.1.27/include/uapi/asm-generic/ |
H A D | resource.h | 8 * a different rlimit ID order in the 5-9 range and want
|
/linux-4.1.27/include/uapi/linux/ |
H A D | resource.h | 42 struct rlimit { struct
|
H A D | futex.h | 116 * (Not worth introducing an rlimit for it)
|
H A D | fs.h | 16 * nr_file rlimit, so it's safe to set up a ridiculously high absolute
|
/linux-4.1.27/arch/mips/mm/ |
H A D | mmap.c | 30 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy() 38 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base()
|
/linux-4.1.27/arch/arm/mm/ |
H A D | mmap.c | 27 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy() 35 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base()
|
/linux-4.1.27/kernel/ |
H A D | sys.c | 436 if (atomic_read(&new_user->processes) >= rlimit(RLIMIT_NPROC) && set_user() 1290 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) SYSCALL_DEFINE2() 1292 struct rlimit value; SYSCALL_DEFINE2() 1308 struct rlimit __user *, rlim) SYSCALL_DEFINE2() 1310 struct rlimit x; SYSCALL_DEFINE2() 1335 static void rlim_to_rlim64(const struct rlimit *rlim, struct rlimit64 *rlim64) rlim_to_rlim64() 1347 static void rlim64_to_rlim(const struct rlimit64 *rlim64, struct rlimit *rlim) rlim64_to_rlim() 1361 struct rlimit *new_rlim, struct rlimit *old_rlim) do_prlimit() 1363 struct rlimit *rlim; do_prlimit() 1453 struct rlimit old, new; SYSCALL_DEFINE4() 1490 SYSCALL_DEFINE2(setrlimit, unsigned int, resource, struct rlimit __user *, rlim) SYSCALL_DEFINE2() 1492 struct rlimit new_rlim; SYSCALL_DEFINE2() 1789 if (check_data_rlimit(rlimit(RLIMIT_DATA), prctl_map->brk, validate_prctl_map() 1954 if (check_data_rlimit(rlimit(RLIMIT_DATA), mm->brk, addr, prctl_set_mm() 1965 if (check_data_rlimit(rlimit(RLIMIT_DATA), addr, mm->start_brk, prctl_set_mm()
|
H A D | compat.c | 447 struct rlimit r; COMPAT_SYSCALL_DEFINE2() 466 struct rlimit r; COMPAT_SYSCALL_DEFINE2() 471 ret = sys_old_getrlimit(resource, (struct rlimit __user *)&r); COMPAT_SYSCALL_DEFINE2() 493 struct rlimit r; COMPAT_SYSCALL_DEFINE2()
|
H A D | seccomp.c | 555 * To be fully secure this must be combined with rlimit
|
/linux-4.1.27/arch/s390/mm/ |
H A D | mmap.c | 58 if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy() 78 unsigned long gap = rlimit(RLIMIT_STACK); mmap_base()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_user_pages.c | 61 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; __qib_get_user_pages()
|
/linux-4.1.27/mm/ |
H A D | mlock.c | 29 if (rlimit(RLIMIT_MEMLOCK) != 0) can_do_mlock() 621 lock_limit = rlimit(RLIMIT_MEMLOCK); SYSCALL_DEFINE2() 698 lock_limit = rlimit(RLIMIT_MEMLOCK); SYSCALL_DEFINE1() 736 lock_limit = rlimit(RLIMIT_MEMLOCK); user_shm_lock()
|
H A D | mremap.c | 372 lock_limit = rlimit(RLIMIT_MEMLOCK); vma_to_resize()
|
H A D | mmap.c | 312 * Check against rlimit here. If this check is done later after the test SYSCALL_DEFINE1() 317 if (check_data_rlimit(rlimit(RLIMIT_DATA), brk, mm->start_brk, SYSCALL_DEFINE1() 1243 lock_limit = rlimit(RLIMIT_MEMLOCK); mlock_future_check() 2096 struct rlimit *rlim = current->signal->rlim; acct_stack_growth() 2996 lim = rlimit(RLIMIT_AS) >> PAGE_SHIFT; may_expand_vm()
|
H A D | filemap.c | 2266 unsigned long limit = rlimit(RLIMIT_FSIZE); generic_write_checks()
|
H A D | shmem.c | 2097 /* We need to check rlimit even when FALLOC_FL_KEEP_SIZE */ shmem_fallocate()
|
/linux-4.1.27/drivers/vfio/ |
H A D | vfio_iommu_spapr_tce.c | 86 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; tce_iommu_enable() 89 rlimit(RLIMIT_MEMLOCK)); tce_iommu_enable()
|
H A D | vfio_iommu_type1.c | 265 unsigned long limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; vfio_pin_pages()
|
/linux-4.1.27/fs/ |
H A D | binfmt_aout.c | 69 /* If the size of the dump file exceeds the rlimit, then see what would happen aout_core_dump() 232 rlim = rlimit(RLIMIT_DATA); load_aout_binary()
|
H A D | file.c | 505 return __alloc_fd(current->files, start, rlimit(RLIMIT_NOFILE), flags); alloc_fd() 510 return __alloc_fd(current->files, 0, rlimit(RLIMIT_NOFILE), flags); get_unused_fd_flags() 802 if (fd >= rlimit(RLIMIT_NOFILE)) replace_fd() 828 if (newfd >= rlimit(RLIMIT_NOFILE)) SYSCALL_DEFINE3() 883 if (from >= rlimit(RLIMIT_NOFILE)) f_dupfd()
|
H A D | coredump.c | 255 rlimit(RLIMIT_CORE)); format_corename() 500 current->signal->rlim[RLIMIT_CORE] = (struct rlimit){1, 1}; umh_pipe_setup() 523 .limit = rlimit(RLIMIT_CORE), do_coredump()
|
H A D | attr.c | 104 limit = rlimit(RLIMIT_FSIZE); inode_newsize_ok()
|
H A D | exec.c | 202 struct rlimit *rlim; get_arg_page() 729 rlim_stack = rlimit(RLIMIT_STACK) & PAGE_MASK; setup_arg_pages() 1499 atomic_read(¤t_user()->processes) > rlimit(RLIMIT_NPROC)) { do_execveat_common()
|
H A D | select.c | 883 if (nfds > rlimit(RLIMIT_NOFILE)) do_sys_poll()
|
H A D | binfmt_flat.c | 510 rlim = rlimit(RLIMIT_DATA); load_flat_file()
|
/linux-4.1.27/arch/x86/ia32/ |
H A D | ia32_aout.c | 165 * If the size of the dump file exceeds the rlimit, then see aout_core_dump() 282 rlim = rlimit(RLIMIT_DATA); load_aout_binary()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_user_pages.c | 63 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; __ipath_get_user_pages()
|
/linux-4.1.27/arch/um/os-Linux/ |
H A D | main.c | 27 struct rlimit lim; set_stklim()
|
H A D | start_up.c | 303 struct rlimit lim; check_coredump_limit()
|
/linux-4.1.27/arch/sh/include/uapi/asm/ |
H A D | unistd_32.h | 88 #define __NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */
|
H A D | unistd_64.h | 93 #define __NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */
|
/linux-4.1.27/arch/mn10300/include/uapi/asm/ |
H A D | unistd.h | 90 #define __NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */
|
/linux-4.1.27/arch/frv/include/uapi/asm/ |
H A D | unistd.h | 84 #define __NR_getrlimit 76 /* Back compatible 2Gig limited rlimit */
|
/linux-4.1.27/tools/perf/tests/ |
H A D | dso-data.c | 226 struct rlimit rlim; set_fd_limit()
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | umem.c | 169 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; ib_umem_get()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | sys_parisc.c | 217 * if (rlimit(RLIMIT_STACK) == RLIM_INFINITY) mmap_is_legacy()
|
/linux-4.1.27/arch/arm/include/uapi/asm/ |
H A D | unistd.h | 104 #define __NR_getrlimit (__NR_SYSCALL_BASE+ 76) /* Back compat 2GB limited rlimit */
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_uiom.c | 134 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; usnic_uiom_get_pages()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | sys_sparc_64.c | 285 gap = rlimit(RLIMIT_STACK); arch_pick_mmap_layout()
|
/linux-4.1.27/arch/microblaze/include/uapi/asm/ |
H A D | unistd.h | 90 #define __NR_getrlimit 76 /* ok Back compatible 2G limited rlimit */
|
/linux-4.1.27/security/ |
H A D | capability.c | 468 struct rlimit *new_rlim) cap_task_setrlimit()
|
H A D | security.c | 939 struct rlimit *new_rlim) security_task_setrlimit()
|
/linux-4.1.27/ipc/ |
H A D | mqueue.c | 280 u->mq_bytes + mq_bytes > rlimit(RLIMIT_MSGQUEUE)) { mqueue_get_inode()
|
H A D | shm.c | 1034 if (cmd == SHM_LOCK && !rlimit(RLIMIT_MEMLOCK)) { SYSCALL_DEFINE3()
|
/linux-4.1.27/net/rds/ |
H A D | rdma.c | 45 * - an rdma is an mlock, apply rlimit?
|
/linux-4.1.27/tools/perf/util/ |
H A D | dso.c | 385 struct rlimit l; get_fd_limit()
|
H A D | evsel.c | 1226 struct rlimit l; __perf_evsel__open()
|
/linux-4.1.27/fs/proc/ |
H A D | base.c | 428 struct rlimit rlim[RLIM_NLIMITS]; proc_pid_limits() 432 memcpy(rlim, task->signal->rlim, sizeof(struct rlimit) * RLIM_NLIMITS); proc_pid_limits()
|
/linux-4.1.27/security/selinux/ |
H A D | hooks.c | 2387 struct rlimit *rlim, *initrlim; selinux_bprm_committing_creds() 2421 update_rlimit_cpu(current, rlimit(RLIMIT_CPU)); selinux_bprm_committing_creds() 3670 struct rlimit *new_rlim) selinux_task_setrlimit() 3672 struct rlimit *old_rlim = p->signal->rlim + resource; selinux_task_setrlimit()
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-sched.c | 446 struct rlimit limit; self_open_counters()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | llite_lib.c | 1308 /* Check new size against VFS/VM file size limit and rlimit */ ll_setattr_raw()
|
/linux-4.1.27/fs/fuse/ |
H A D | dir.c | 1602 * vmtruncate() doesn't allow for this case, so do the rlimit checking
|
/linux-4.1.27/kernel/events/ |
H A D | core.c | 4697 lock_limit = rlimit(RLIMIT_MEMLOCK); perf_mmap()
|
/linux-4.1.27/kernel/sched/ |
H A D | core.c | 3136 /* convert nice value [19,-20] to rlimit style value [1,40] */ can_nice()
|