/linux-6.6.21/drivers/platform/x86/dell/ |
D | dell-smbios-base.c | 50 {CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_STD}, 51 {CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_AC}, 52 {CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_BAT}, 53 {CAP_SYS_ADMIN, CLASS_TOKEN_WRITE, SELECT_TOKEN_STD}, 54 {CAP_SYS_ADMIN, CLASS_TOKEN_WRITE, SELECT_TOKEN_AC}, 55 {CAP_SYS_ADMIN, CLASS_TOKEN_WRITE, SELECT_TOKEN_BAT}, 57 {CAP_SYS_ADMIN, CLASS_ADMIN_PROP, SELECT_ADMIN_PROP}, 59 {CAP_SYS_ADMIN, CLASS_INFO, SELECT_DOCK}, 60 {CAP_SYS_ADMIN, CLASS_FLASH_INTERFACE, SELECT_FLASH_INTERFACE}, 85 {CAP_SYS_ADMIN, CAPSULE_EN_TOKEN, CAPSULE_DIS_TOKEN}, [all …]
|
/linux-6.6.21/fs/reiserfs/ |
D | xattr_trusted.c | 15 if (!capable(CAP_SYS_ADMIN) || IS_PRIVATE(inode)) in trusted_get() 28 if (!capable(CAP_SYS_ADMIN) || IS_PRIVATE(inode)) in trusted_set() 38 return capable(CAP_SYS_ADMIN) && !IS_PRIVATE(d_inode(dentry)); in trusted_list()
|
/linux-6.6.21/drivers/xen/xenbus/ |
D | xenbus_dev_backend.c | 24 if (!capable(CAP_SYS_ADMIN)) in xenbus_backend_open() 77 if (!capable(CAP_SYS_ADMIN)) in xenbus_backend_ioctl() 96 if (!capable(CAP_SYS_ADMIN)) in xenbus_backend_mmap()
|
/linux-6.6.21/drivers/s390/block/ |
D | dasd_ioctl.c | 49 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_enable() 70 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_disable() 103 if (!capable (CAP_SYS_ADMIN)) in dasd_ioctl_quiesce() 124 if (!capable (CAP_SYS_ADMIN)) in dasd_ioctl_resume() 148 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_abortio() 182 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_allowio() 262 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_format() 350 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_release_space() 393 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_copy_pair_swap()
|
/linux-6.6.21/kernel/cgroup/ |
D | namespace.c | 66 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_cgroup_ns() 103 if (!ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN) || in cgroupns_install() 104 !ns_capable(cgroup_ns->user_ns, CAP_SYS_ADMIN)) in cgroupns_install()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | deny_namespace.c | 51 __u32 cap_mask = 1ULL << CAP_SYS_ADMIN; in test_userns_create_bpf() 68 __u32 cap_mask = 1ULL << CAP_SYS_ADMIN; in test_unpriv_userns_create_no_bpf()
|
/linux-6.6.21/mm/ |
D | hwpoison-inject.c | 21 if (!capable(CAP_SYS_ADMIN)) in hwpoison_inject() 57 if (!capable(CAP_SYS_ADMIN)) in hwpoison_unpoison()
|
/linux-6.6.21/arch/alpha/kernel/ |
D | pci-noop.c | 100 if (!capable(CAP_SYS_ADMIN)) in SYSCALL_DEFINE5() 109 if (!capable(CAP_SYS_ADMIN)) in SYSCALL_DEFINE5()
|
/linux-6.6.21/include/linux/ |
D | capability.h | 197 return capable(CAP_PERFMON) || capable(CAP_SYS_ADMIN); in perfmon_capable() 202 return capable(CAP_BPF) || capable(CAP_SYS_ADMIN); in bpf_capable() 208 ns_capable(ns, CAP_SYS_ADMIN); in checkpoint_restore_ns_capable()
|
/linux-6.6.21/fs/gfs2/ |
D | sys.c | 172 if (!capable(CAP_SYS_ADMIN)) in freeze_store() 204 if (!capable(CAP_SYS_ADMIN)) in withdraw_store() 225 if (!capable(CAP_SYS_ADMIN)) in statfs_sync_store() 244 if (!capable(CAP_SYS_ADMIN)) in quota_sync_store() 265 if (!capable(CAP_SYS_ADMIN)) in quota_refresh_user_store() 287 if (!capable(CAP_SYS_ADMIN)) in quota_refresh_group_store() 312 if (!capable(CAP_SYS_ADMIN)) in demote_rq_store() 640 if (!capable(CAP_SYS_ADMIN)) in quota_scale_store() 660 if (!capable(CAP_SYS_ADMIN)) in tune_set()
|
/linux-6.6.21/tools/testing/selftests/landlock/ |
D | fs_test.c | 268 set_cap(_metadata, CAP_SYS_ADMIN); in prepare_layout_opt() 283 clear_cap(_metadata, CAP_SYS_ADMIN); in prepare_layout_opt() 293 set_cap(_metadata, CAP_SYS_ADMIN); in cleanup_layout() 295 clear_cap(_metadata, CAP_SYS_ADMIN); in cleanup_layout() 329 set_cap(_metadata, CAP_SYS_ADMIN); in create_layout1() 331 clear_cap(_metadata, CAP_SYS_ADMIN); in create_layout1() 354 set_cap(_metadata, CAP_SYS_ADMIN); in remove_layout1() 356 clear_cap(_metadata, CAP_SYS_ADMIN); in remove_layout1() 1566 set_cap(_metadata, CAP_SYS_ADMIN); in TEST_F_FORK() 1572 clear_cap(_metadata, CAP_SYS_ADMIN); in TEST_F_FORK() [all …]
|
/linux-6.6.21/drivers/pci/ |
D | syscall.c | 26 if (!capable(CAP_SYS_ADMIN)) in SYSCALL_DEFINE5() 95 if (!capable(CAP_SYS_ADMIN) || in SYSCALL_DEFINE5()
|
/linux-6.6.21/block/ |
D | ioctl.c | 23 if (!capable(CAP_SYS_ADMIN)) in blkpg_do_ioctl() 266 if (capable(CAP_SYS_ADMIN)) in blkdev_pr_allowed() 368 if (!capable(CAP_SYS_ADMIN)) in blkdev_flushbuf() 387 if (!capable(CAP_SYS_ADMIN)) in blkdev_roset() 472 if (!capable(CAP_SYS_ADMIN)) in blkdev_bszset() 547 if(!capable(CAP_SYS_ADMIN)) in blkdev_common_ioctl() 552 if (!capable(CAP_SYS_ADMIN)) in blkdev_common_ioctl()
|
/linux-6.6.21/drivers/macintosh/ |
D | ans-lcd.c | 112 if (!capable(CAP_SYS_ADMIN)) in anslcd_ioctl() 118 if (!capable(CAP_SYS_ADMIN)) in anslcd_ioctl()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_ioctl.c | 200 if (!capable(CAP_SYS_ADMIN)) in xfs_open_by_handle() 274 if (!capable(CAP_SYS_ADMIN)) in xfs_readlink_by_handle() 450 if (!capable(CAP_SYS_ADMIN)) in xfs_attrlist_by_handle() 590 if (!capable(CAP_SYS_ADMIN)) in xfs_attrmulti_by_handle() 677 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_fsbulkstat() 851 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_bulkstat() 901 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_inumbers() 1650 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_scrub_metadata() 1779 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_setlabel() 2024 if (!capable(CAP_SYS_ADMIN)) in xfs_file_ioctl() [all …]
|
/linux-6.6.21/kernel/ |
D | utsname.c | 145 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in utsns_install() 146 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in utsns_install()
|
/linux-6.6.21/fs/btrfs/ |
D | ioctl.c | 489 if (!capable(CAP_SYS_ADMIN)) in btrfs_ioctl_fitrim() 1115 if (!capable(CAP_SYS_ADMIN)) in btrfs_ioctl_resize() 1750 if (!capable(CAP_SYS_ADMIN)) in btrfs_ioctl_tree_search() 1781 if (!capable(CAP_SYS_ADMIN)) in btrfs_ioctl_tree_search_v2() 2072 if (!capable(CAP_SYS_ADMIN)) { in btrfs_ioctl_ino_lookup() 2506 if (!capable(CAP_SYS_ADMIN)) { in btrfs_ioctl_snap_destroy() 2591 if (!capable(CAP_SYS_ADMIN)) { in btrfs_ioctl_defrag() 2603 if (!capable(CAP_SYS_ADMIN) && in btrfs_ioctl_defrag() 2646 if (!capable(CAP_SYS_ADMIN)) in btrfs_ioctl_add_dev() 2700 if (!capable(CAP_SYS_ADMIN)) in btrfs_ioctl_rm_dev_v2() [all …]
|
/linux-6.6.21/tools/build/feature/ |
D | test-libcap.c | 13 if (cap_get_flag(caps, CAP_SYS_ADMIN, CAP_EFFECTIVE, &val) != 0) in main()
|
/linux-6.6.21/drivers/xen/ |
D | xen-balloon.c | 168 if (!capable(CAP_SYS_ADMIN)) in target_kb_store() 195 if (!capable(CAP_SYS_ADMIN)) in target_store()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_deny_namespace.c | 20 __u64 cap_mask = 1ULL << CAP_SYS_ADMIN; in BPF_PROG()
|
/linux-6.6.21/fs/nilfs2/ |
D | ioctl.c | 195 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_change_cpmode() 250 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_delete_checkpoint() 860 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_clean_segments() 1022 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_resize() 1058 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_trim_fs() 1102 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_set_alloc_range() 1217 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_set_suinfo()
|
/linux-6.6.21/ipc/ |
D | namespace.c | 237 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in ipcns_install() 238 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in ipcns_install()
|
/linux-6.6.21/fs/ext4/ |
D | xattr_trusted.c | 19 return capable(CAP_SYS_ADMIN); in ext4_xattr_trusted_list()
|
/linux-6.6.21/fs/jffs2/ |
D | xattr_trusted.c | 39 return capable(CAP_SYS_ADMIN); in jffs2_trusted_listxattr()
|
/linux-6.6.21/fs/ext2/ |
D | xattr_trusted.c | 15 return capable(CAP_SYS_ADMIN); in ext2_xattr_trusted_list()
|