/linux/include/linux/ |
H A D | capability.h | 147 extern bool capable(int cap); 166 static inline bool capable(int cap) in capable() function 192 return capable(CAP_PERFMON) || capable(CAP_SYS_ADMIN); in perfmon_capable() 197 return capable(CAP_BPF) || capable(CAP_SYS_ADMIN); in bpf_capable()
|
/linux/net/dcb/ |
H A D | Kconfig | 7 features on DCB capable Ethernet adapters via rtnetlink. Say 'Y' 8 if you have a DCB capable Ethernet adapter which supports this 9 interface and you are connected to a DCB capable switch. 11 DCB is a collection of Ethernet enhancements which allow DCB capable
|
/linux/Documentation/arch/arm64/ |
H A D | asymmetric-32bit.rst | 16 of the CPUs are capable of executing 32-bit user applications. On such 56 The subset of CPUs capable of running 32-bit tasks is described in 61 late-onlining of 32-bit-capable CPUs can result in the file contents 74 1. If the 32-bit-capable subset of the affinity mask is not empty, 83 ancestor is found containing at least one 32-bit-capable CPU. The 84 affinity of the task is then changed to match the 32-bit-capable 88 of all 32-bit-capable CPUs of which the kernel is aware. 98 the 32-bit-capable CPUs of the requested affinity mask. On success, the 113 of 32-bit-capable CPUs may still necessitate the procedure described in 117 **Note:** It is recommended that a set of 32-bit-capable CPU [all...] |
/linux/drivers/xen/xenbus/ |
H A 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/drivers/net/wireless/broadcom/b43legacy/ |
H A D | sysfs.c | 71 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_show() 105 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_store() 150 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_show() 173 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_preamble_store()
|
/linux/kernel/ |
H A D | capability.c | 335 int capable; in ns_capable_common() local 338 pr_crit("capable() called with invalid cap=%u\n", cap); in ns_capable_common() 342 capable = security_capable(current_cred(), ns, cap, opts); in ns_capable_common() 343 if (capable == 0) { in ns_capable_common() 405 * capable - Determine if the current task has a superior capability in effect 414 bool capable(int cap) in capable() function 418 EXPORT_SYMBOL(capable);
|
/linux/Documentation/arch/powerpc/ |
H A D | elfnote.rst | 18 - Ultravisor-capable bit (PowerNV only). 28 by the ultravisor. If the kernel is not ultravisor-capable, but it ends up 35 or the Ultravisor-capable bit is not set.
|
/linux/drivers/s390/block/ |
H A D | dasd_ioctl.c | 44 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_enable() 65 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_disable() 98 if (!capable (CAP_SYS_ADMIN)) in dasd_ioctl_quiesce() 119 if (!capable (CAP_SYS_ADMIN)) in dasd_ioctl_resume() 143 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_abortio() 177 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_allowio() 257 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_format() 345 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_release_space() 388 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_copy_pair_swap()
|
/linux/Documentation/userspace-api/ioctl/ |
H A D | cdrom.rst | 117 - ENOSYS cd drive not audio-capable. 138 - ENOSYS cd drive not audio-capable. 162 - ENOSYS cd drive not audio-capable. 193 - ENOSYS cd drive not audio-capable. 222 - ENOSYS cd drive not audio-capable. 247 - ENOSYS cd drive not audio-capable. 277 - ENOSYS cd drive not audio-capable. 302 - ENOSYS cd drive not audio-capable. 328 - ENOSYS cd drive not capable of ejecting 355 - ENOSYS cd drive not capable o [all...] |
/linux/mm/ |
H A D | hwpoison-inject.c | 21 if (!capable(CAP_SYS_ADMIN)) in hwpoison_inject() 58 if (!capable(CAP_SYS_ADMIN)) in hwpoison_unpoison()
|
/linux/net/atm/ |
H A D | resources.c | 270 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl() 283 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl() 309 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl() 322 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl() 366 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
|
/linux/Documentation/driver-api/serial/ |
H A D | serial-iso7816.rst | 14 Some CPUs/UARTs (e.g., Microchip AT91) contain a built-in mode capable of 17 For these microcontrollers, the Linux driver should be made capable of 29 Any driver for devices capable of working both as RS232 and ISO7816 should
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | sysfs.c | 44 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_show() 82 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_store()
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | hisilicon,histb-xhci.txt | 27 - usb3-lpm-capable: determines if platform is USB3 LPM capable
|
/linux/arch/x86/kernel/ |
H A D | ioport.c | 79 if (turn_on && (!capable(CAP_SYS_RAWIO) || in ksys_ioperm() 195 if (!capable(CAP_SYS_RAWIO) || in SYSCALL_DEFINE1()
|
/linux/drivers/macintosh/ |
H A D | ans-lcd.c | 112 if (!capable(CAP_SYS_ADMIN)) in anslcd_ioctl() 118 if (!capable(CAP_SYS_ADMIN)) in anslcd_ioctl()
|
/linux/net/ax25/ |
H A D | ax25_uid.c | 92 if (!capable(CAP_NET_ADMIN)) in ax25_uid_ioctl() 118 if (!capable(CAP_NET_ADMIN)) in ax25_uid_ioctl()
|
/linux/net/bluetooth/hidp/ |
H A D | sock.c | 64 if (!capable(CAP_NET_ADMIN)) in do_hidp_sock_ioctl() 91 if (!capable(CAP_NET_ADMIN)) in do_hidp_sock_ioctl() 178 if (!capable(CAP_NET_ADMIN)) in hidp_sock_compat_ioctl()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-devices-power | 31 For the devices that are not capable of generating system wakeup 86 attribute is read-only. If the device is not capable to wake up 98 is read-only. If the device is not capable to wake up the 111 is not capable to wake up the system from sleep states, this 122 read-only. If the device is not capable to wake up the system 134 If the device is not capable to wake up the system from sleep 146 device is not capable to wake up the system from sleep states, 157 If the device is not capable to wake up the system from sleep 181 This attribute is read-only. If the device is not capable to
|
/linux/drivers/platform/x86/dell/ |
H A D | dell-smbios-base.c | 257 capable(token_whitelist[i].need_capability)) { in dell_smbios_call_filter() 271 capable(call_whitelist[i].need_capability)) { in dell_smbios_call_filter() 272 dev_dbg(d, "whitelisted capable command: %u/%u\n", in dell_smbios_call_filter() 283 if (capable(CAP_SYS_RAWIO)) { in dell_smbios_call_filter() 465 if (!capable(CAP_SYS_ADMIN)) in location_show() 476 if (!capable(CAP_SYS_ADMIN)) in value_show()
|
/linux/drivers/tty/vt/ |
H A D | vt_ioctl.c | 362 if (!capable(CAP_SYS_TTY_CONFIG)) in vt_k_ioctl() 419 if(!capable(CAP_SYS_TTY_CONFIG)) in vt_k_ioctl() 455 if (!perm || !capable(CAP_KILL)) in vt_k_ioctl() 748 if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) in vt_ioctl() 940 if (!capable(CAP_SYS_TTY_CONFIG)) in vt_ioctl() 945 if (!capable(CAP_SYS_TTY_CONFIG)) in vt_ioctl() 1086 if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) in vt_compat_ioctl()
|
/linux/block/ |
H A D | ioctl.c | 28 if (!capable(CAP_SYS_ADMIN)) in blkpg_do_ioctl() 327 if (capable(CAP_SYS_ADMIN)) in blkdev_pr_allowed() 429 if (!capable(CAP_SYS_ADMIN)) in blkdev_flushbuf() 449 if (!capable(CAP_SYS_ADMIN)) in blkdev_roset() 541 if (!capable(CAP_SYS_ADMIN)) in blkdev_bszset() 616 if(!capable(CAP_SYS_ADMIN)) in blkdev_common_ioctl() 621 if (!capable(CAP_SYS_ADMIN)) in blkdev_common_ioctl()
|
/linux/fs/nilfs2/ |
H A D | ioctl.c | 13 #include <linux/capability.h> /* capable() */ 203 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_change_cpmode() 255 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_delete_checkpoint() 845 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_clean_segments() 999 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_resize() 1035 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_trim_fs() 1079 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_set_alloc_range() 1188 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_set_suinfo() 1288 if (!capable(CAP_SYS_ADMIN)) in nilfs_ioctl_set_fslabel()
|
/linux/Documentation/userspace-api/media/mediactl/ |
H A D | media-types.rst | 143 - Video composer (blender). An entity capable of video 151 - Video pixel formatter. An entity capable of pixel formatting 160 - Video pixel encoding converter. An entity capable of pixel 169 - Video look-up table. An entity capable of video lookup table 178 - Video scaler. An entity capable of video scaling must have 190 capable of statistics computation must have one sink pad and 196 - Video (MPEG, HEVC, VPx, etc.) encoder. An entity capable of 201 - Video (MPEG, HEVC, VPx, etc.) decoder. An entity capable of 212 - Video multiplexer. An entity capable of multiplexing must have at
|
/linux/fs/xfs/ |
H A D | xfs_ioctl.c | 94 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_fsbulkstat() 272 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_bulkstat() 322 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_inumbers() 1013 if (!capable(CAP_SYS_ADMIN)) in xfs_ioc_setlabel() 1120 if (!capable(CAP_SYS_ADMIN)) in xfs_ioctl_getset_resblocks() 1371 if (!capable(CAP_SYS_ADMIN)) in xfs_file_ioctl() 1383 if (!capable(CAP_SYS_ADMIN)) in xfs_file_ioctl() 1393 if (!capable(CAP_SYS_ADMIN)) in xfs_file_ioctl() 1402 if (!capable(CAP_SYS_ADMIN)) in xfs_file_ioctl()
|