CAP_IPC_LOCK
if (locked > lock_limit && !capable(CAP_IPC_LOCK)) {
if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) {
new_pinned, lock_limit, capable(CAP_IPC_LOCK));
if (new_pinned > lock_limit && !capable(CAP_IPC_LOCK)) {
if (!capable(CAP_IPC_LOCK)) {
if ((locked > lock_limit) && !capable(CAP_IPC_LOCK)) {
if (capable(CAP_IPC_LOCK))
lock_cap = capable(CAP_IPC_LOCK);
dma->lock_cap = capable(CAP_IPC_LOCK);
return capable(CAP_IPC_LOCK) || in_group_p(shm_group);
if (!ns_capable_noaudit(&init_user_ns, CAP_IPC_LOCK))
if (!ns_capable(ns->user_ns, CAP_IPC_LOCK)) {
return locked <= lock_limit || !perf_is_paranoid() || capable(CAP_IPC_LOCK);
if (capable(CAP_IPC_LOCK))
if ((locked > lock_limit) && (!capable(CAP_IPC_LOCK))) {
if ((locked <= lock_limit) || capable(CAP_IPC_LOCK))
capable(CAP_IPC_LOCK))
if ((memlock == LONG_MAX || memlock > lock_limit) && !capable(CAP_IPC_LOCK)) {
if (!is_vma_locked || capable(CAP_IPC_LOCK))
capable(CAP_IPC_LOCK));
if (capable(CAP_IPC_LOCK) || !size)
if (capable(CAP_IPC_LOCK))
cap_value_t cap_list[1] = { CAP_IPC_LOCK };
if (!(vm_flags & VM_LOCKED) || capable(CAP_IPC_LOCK))