Home
last modified time | relevance | path

Searched refs:CAP_SYS_RESOURCE (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.6.21/include/uapi/linux/
Dcapability.h309 #define CAP_SYS_RESOURCE 24 macro
/linux-6.6.21/fs/gfs2/
Dquota.h47 if (capable(CAP_SYS_RESOURCE) || in gfs2_quota_lock_check()
/linux-6.6.21/net/unix/
Dscm.c103 return !capable(CAP_SYS_RESOURCE) && !capable(CAP_SYS_ADMIN); in too_many_unix_fds()
/linux-6.6.21/include/linux/
Dcapability.h69 # define CAP_NFSD_SET ((kernel_cap_t) { CAP_FS_MASK | BIT_ULL(CAP_SYS_RESOURCE) })
/linux-6.6.21/security/apparmor/
Dresource.c135 aa_capable(subj_cred, label, CAP_SYS_RESOURCE, CAP_OPT_NOAUDIT) != 0) in aa_task_setrlimit()
/linux-6.6.21/drivers/rtc/
Ddev.c231 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/
Dcdev.c393 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/
Dquota.rst12 resource (unless he has CAP_SYS_RESOURCE capability). User is allowed to exceed
/linux-6.6.21/fs/
Dpipe.c778 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/
Ducount.c48 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
Dsys.c1482 !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/
Dioctl.c863 if (!capable(CAP_SYS_RESOURCE)) in ocfs2_ioctl()
881 if (!capable(CAP_SYS_RESOURCE)) in ocfs2_ioctl()
/linux-6.6.21/drivers/iommu/iommufd/
Dioas.c335 if (!capable(CAP_SYS_RESOURCE)) in iommufd_option_rlimit_mode()
/linux-6.6.21/fs/ubifs/
Dbudget.c259 if (uid_eq(current_fsuid(), c->rp_uid) || capable(CAP_SYS_RESOURCE) || in can_use_rp()
/linux-6.6.21/fs/proc/
Dbase.c1073 !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/
Dmqueue.c352 if (capable(CAP_SYS_RESOURCE)) { in mqueue_get_inode()
582 !capable(CAP_SYS_RESOURCE)) { in mqueue_create_attr()
Dmsg.c435 !capable(CAP_SYS_RESOURCE)) { in msgctl_down()
/linux-6.6.21/fs/jffs2/
Dnodemgmt.c45 if (capable(CAP_SYS_RESOURCE)) in jffs2_rp_can_write()
/linux-6.6.21/drivers/char/
Dhpet.c633 !capable(CAP_SYS_RESOURCE)) { in hpet_ioctl_common()
/linux-6.6.21/fs/ext4/
Dballoc.c644 capable(CAP_SYS_RESOURCE) || in ext4_has_free_clusters()
/linux-6.6.21/fs/ext2/
Dballoc.c1157 if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && in ext2_has_free_blocks()
/linux-6.6.21/fs/btrfs/
Dsysfs.c1067 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/
Dballoc.c401 if (!capable(CAP_SYS_RESOURCE)) { in ufs_new_fragments()
/linux-6.6.21/kernel/sched/
Dpsi.c1295 privileged = cap_raised(file->f_cred->cap_effective, CAP_SYS_RESOURCE); in psi_trigger_create()
/linux-6.6.21/fs/overlayfs/
Dsuper.c1485 cap_lower(cred->cap_effective, CAP_SYS_RESOURCE); in ovl_fill_super()

12