Searched refs:CAP_SYS_RESOURCE (Results 1 – 25 of 33) sorted by relevance
12
/linux-6.6.21/include/uapi/linux/ |
D | capability.h | 309 #define CAP_SYS_RESOURCE 24 macro
|
/linux-6.6.21/fs/gfs2/ |
D | quota.h | 47 if (capable(CAP_SYS_RESOURCE) || in gfs2_quota_lock_check()
|
/linux-6.6.21/net/unix/ |
D | scm.c | 103 return !capable(CAP_SYS_RESOURCE) && !capable(CAP_SYS_ADMIN); in too_many_unix_fds()
|
/linux-6.6.21/include/linux/ |
D | capability.h | 69 # define CAP_NFSD_SET ((kernel_cap_t) { CAP_FS_MASK | BIT_ULL(CAP_SYS_RESOURCE) })
|
/linux-6.6.21/security/apparmor/ |
D | resource.c | 135 aa_capable(subj_cred, label, CAP_SYS_RESOURCE, CAP_OPT_NOAUDIT) != 0) in aa_task_setrlimit()
|
/linux-6.6.21/drivers/rtc/ |
D | dev.c | 231 if (arg > rtc->max_user_freq && !capable(CAP_SYS_RESOURCE)) in rtc_dev_ioctl() 237 !capable(CAP_SYS_RESOURCE)) in rtc_dev_ioctl()
|
/linux-6.6.21/drivers/mtd/ubi/ |
D | cdev.c | 393 if (!capable(CAP_SYS_RESOURCE)) { in vol_cdev_ioctl() 839 if (!capable(CAP_SYS_RESOURCE)) in ubi_cdev_ioctl() 1009 if (!capable(CAP_SYS_RESOURCE)) in ctrl_cdev_ioctl()
|
/linux-6.6.21/Documentation/filesystems/ |
D | quota.rst | 12 resource (unless he has CAP_SYS_RESOURCE capability). User is allowed to exceed
|
/linux-6.6.21/fs/ |
D | pipe.c | 778 return !capable(CAP_SYS_RESOURCE) && !capable(CAP_SYS_ADMIN); in pipe_is_unprivileged_user() 793 if (pipe_bufs * PAGE_SIZE > max_size && !capable(CAP_SYS_RESOURCE)) in alloc_pipe_info() 1347 size > pipe_max_size && !capable(CAP_SYS_RESOURCE)) in pipe_set_size()
|
/linux-6.6.21/kernel/ |
D | ucount.c | 48 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
|
D | sys.c | 1482 !capable(CAP_SYS_RESOURCE)) in do_prlimit() 1678 if (!id_match && !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE)) in check_prlimit_permission() 2149 if (!capable(CAP_SYS_RESOURCE)) in prctl_set_mm() 2676 if (!capable(CAP_SYS_RESOURCE)) in SYSCALL_DEFINE5() 2690 if (!capable(CAP_SYS_RESOURCE)) in SYSCALL_DEFINE5()
|
/linux-6.6.21/fs/ocfs2/ |
D | ioctl.c | 863 if (!capable(CAP_SYS_RESOURCE)) in ocfs2_ioctl() 881 if (!capable(CAP_SYS_RESOURCE)) in ocfs2_ioctl()
|
/linux-6.6.21/drivers/iommu/iommufd/ |
D | ioas.c | 335 if (!capable(CAP_SYS_RESOURCE)) in iommufd_option_rlimit_mode()
|
/linux-6.6.21/fs/ubifs/ |
D | budget.c | 259 if (uid_eq(current_fsuid(), c->rp_uid) || capable(CAP_SYS_RESOURCE) || in can_use_rp()
|
/linux-6.6.21/fs/proc/ |
D | base.c | 1073 !capable(CAP_SYS_RESOURCE)) { in __set_oom_adj() 1086 !capable(CAP_SYS_RESOURCE)) { in __set_oom_adj() 1110 if (!legacy && has_capability_noaudit(current, CAP_SYS_RESOURCE)) in __set_oom_adj() 1129 if (!legacy && has_capability_noaudit(current, CAP_SYS_RESOURCE)) in __set_oom_adj() 1365 if (!capable(CAP_SYS_RESOURCE)) in proc_fault_inject_write()
|
/linux-6.6.21/ipc/ |
D | mqueue.c | 352 if (capable(CAP_SYS_RESOURCE)) { in mqueue_get_inode() 582 !capable(CAP_SYS_RESOURCE)) { in mqueue_create_attr()
|
D | msg.c | 435 !capable(CAP_SYS_RESOURCE)) { in msgctl_down()
|
/linux-6.6.21/fs/jffs2/ |
D | nodemgmt.c | 45 if (capable(CAP_SYS_RESOURCE)) in jffs2_rp_can_write()
|
/linux-6.6.21/drivers/char/ |
D | hpet.c | 633 !capable(CAP_SYS_RESOURCE)) { in hpet_ioctl_common()
|
/linux-6.6.21/fs/ext4/ |
D | balloc.c | 644 capable(CAP_SYS_RESOURCE) || in ext4_has_free_clusters()
|
/linux-6.6.21/fs/ext2/ |
D | balloc.c | 1157 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks()
|
/linux-6.6.21/fs/btrfs/ |
D | sysfs.c | 1067 if (!capable(CAP_SYS_RESOURCE)) in btrfs_commit_stats_store() 1113 if (!capable(CAP_SYS_RESOURCE)) in quota_override_store()
|
/linux-6.6.21/fs/ufs/ |
D | balloc.c | 401 if (!capable(CAP_SYS_RESOURCE)) { in ufs_new_fragments()
|
/linux-6.6.21/kernel/sched/ |
D | psi.c | 1295 privileged = cap_raised(file->f_cred->cap_effective, CAP_SYS_RESOURCE); in psi_trigger_create()
|
/linux-6.6.21/fs/overlayfs/ |
D | super.c | 1485 cap_lower(cred->cap_effective, CAP_SYS_RESOURCE); in ovl_fill_super()
|
12