Searched refs:CAP_IPC_LOCK (Results 1 – 20 of 20) sorted by relevance
44 if (capable(CAP_IPC_LOCK)) in can_do_mlock()634 if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) { in do_mlock()646 if ((locked <= lock_limit) || capable(CAP_IPC_LOCK)) in do_mlock()765 capable(CAP_IPC_LOCK)) in SYSCALL_DEFINE1()804 if ((memlock == LONG_MAX || memlock > lock_limit) && !capable(CAP_IPC_LOCK)) { in user_shm_lock()
558 capable(CAP_IPC_LOCK)); in account_locked_vm()
234 if (!is_vma_locked || capable(CAP_IPC_LOCK)) in mlock_future_ok()
185 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in amdxdna_get_ubuf()187 new_pinned, lock_limit, capable(CAP_IPC_LOCK)); in amdxdna_get_ubuf()
39 if (!capable(CAP_IPC_LOCK)) { in hfi1_can_pin_pages()
243 imposed but ignored for unprivileged processes with CAP_IPC_LOCK252 unprivileged processes with CAP_IPC_LOCK capability.259 unprivileged processes with CAP_IPC_LOCK capability.302 for processes with the CAP_IPC_LOCK capability. Thus, perf_events/Perf305 executable with CAP_IPC_LOCK capability.
222 if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) { in ib_umem_get()
133 if (capable(CAP_IPC_LOCK)) in xdp_umem_account_pages()
361 #define CAP_IPC_LOCK 14 macro1247 if (!(vm_flags & VM_LOCKED) || capable(CAP_IPC_LOCK)) in mlock_future_ok()
129 if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) { in usnic_uiom_get_pages()
147 Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
1660 lock_cap = capable(CAP_IPC_LOCK); in vfio_change_dma_owner()1778 dma->lock_cap = capable(CAP_IPC_LOCK); in vfio_dma_do_map()
1513 return capable(CAP_IPC_LOCK) || in_group_p(shm_group); in can_do_hugetlb_shm()
1192 if (!ns_capable(ns->user_ns, CAP_IPC_LOCK)) { in shmctl_do_lock()
1388 if (capable(CAP_IPC_LOCK)) in iopt_alloc_pages()
2976 if (!ns_capable_noaudit(&init_user_ns, CAP_IPC_LOCK)) in io_uring_create()
201 cap_value_t cap_list[1] = { CAP_IPC_LOCK }; in drop_cap_ipc_lock()
700 if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { in sev_pin_memory()
1691 if (capable(CAP_IPC_LOCK) || !size) in mm_account_pinned_pages()
7256 return locked <= lock_limit || !perf_is_paranoid() || capable(CAP_IPC_LOCK); in perf_mmap_calc_limits()