Home
last modified time | relevance | path

Searched refs:capable (Results 1 – 25 of 887) sorted by relevance

12345678910>>...36

/linux/include/linux/
H A Dcapability.h148 extern bool capable(int cap);
171 static inline bool capable(int cap) in capable() function
197 return capable(CAP_PERFMON) || capable(CAP_SYS_ADMIN); in perfmon_capable()
202 return capable(CAP_BPF) || capable(CAP_SYS_ADMIN); in bpf_capable()
H A Dpm_wakeup.h111 extern void device_set_wakeup_capable(struct device *dev, bool capable);
122 static inline void device_set_wakeup_capable(struct device *dev, bool capable) in device_set_wakeup_capable() argument
124 dev->power.can_wakeup = capable; in device_set_wakeup_capable()
/linux/net/dcb/
H A DKconfig7 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 Dasymmetric-32bit.rst16 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
132 - All of the 32-bit-capable CPUs allowed by a cpuset containing a
[all …]
/linux/fs/reiserfs/
H A Dxattr_trusted.c15 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/Documentation/devicetree/bindings/dma/
H A Dmv-xor.txt20 - dmacap,memcpy to indicate that the XOR channel is capable of memcpy operations
21 - dmacap,memset to indicate that the XOR channel is capable of memset operations
22 - dmacap,xor to indicate that the XOR channel is capable of xor operations
23 - dmacap,interrupt to indicate that the XOR channel is capable of
/linux/drivers/xen/xenbus/
H A Dxenbus_dev_backend.c24 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/Documentation/devicetree/bindings/usb/
H A Dusb-xhci.yaml20 usb3-lpm-capable:
21 description: Determines if platform is USB3 LPM capable
47 usb3-lpm-capable;
H A Dhisilicon,histb-xhci.txt27 - usb3-lpm-capable: determines if platform is USB3 LPM capable
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dsysfs.c71 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 Dcapability.c355 int capable; in ns_capable_common() local
362 capable = security_capable(current_cred(), ns, cap, opts); in ns_capable_common()
363 if (capable == 0) { in ns_capable_common()
434 bool capable(int cap) in capable() function
438 EXPORT_SYMBOL(capable);
/linux/Documentation/arch/powerpc/
H A Delfnote.rst18 - 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/fs/bcachefs/
H A Dchardev.c185 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_fsck_offline()
286 if (!capable(CAP_SYS_ADMIN))
297 if (!capable(CAP_SYS_ADMIN))
310 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_disk_add()
331 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_disk_remove()
353 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_disk_online()
374 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_disk_offline()
399 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_disk_set_state()
480 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_data()
676 if (!capable(CAP_SYS_ADMIN)) in bch2_ioctl_read_super()
[all …]
/linux/drivers/s390/block/
H A Ddasd_ioctl.c43 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_enable()
64 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_disable()
97 if (!capable (CAP_SYS_ADMIN)) in dasd_ioctl_quiesce()
118 if (!capable (CAP_SYS_ADMIN)) in dasd_ioctl_resume()
142 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_abortio()
176 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_allowio()
256 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_format()
344 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_release_space()
387 if (!capable(CAP_SYS_ADMIN)) in dasd_ioctl_copy_pair_swap()
/linux/Documentation/userspace-api/ioctl/
H A Dcdrom.rst117 - 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.
383 - ENOSYS cd drive not audio-capable.
408 - ENOSYS cd drive not audio-capable.
[all …]
/linux/mm/
H A Dhwpoison-inject.c21 if (!capable(CAP_SYS_ADMIN)) in hwpoison_inject()
58 if (!capable(CAP_SYS_ADMIN)) in hwpoison_unpoison()
/linux/net/atm/
H A Dresources.c271 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
284 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
310 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
323 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
367 if (!capable(CAP_NET_ADMIN)) { in atm_dev_ioctl()
/linux/Documentation/driver-api/serial/
H A Dserial-iso7816.rst14 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/fs/gfs2/
H A Dsys.c172 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/drivers/net/wireless/broadcom/b43/
H A Dsysfs.c44 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_show()
82 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_store()
/linux/drivers/pci/
H A Dsyscall.c26 if (!capable(CAP_SYS_ADMIN)) in SYSCALL_DEFINE5()
95 if (!capable(CAP_SYS_ADMIN) || in SYSCALL_DEFINE5()
/linux/block/
H A Dioctl.c23 if (!capable(CAP_SYS_ADMIN)) in blkpg_do_ioctl()
302 if (capable(CAP_SYS_ADMIN)) in blkdev_pr_allowed()
404 if (!capable(CAP_SYS_ADMIN)) in blkdev_flushbuf()
424 if (!capable(CAP_SYS_ADMIN)) in blkdev_roset()
516 if (!capable(CAP_SYS_ADMIN)) in blkdev_bszset()
591 if(!capable(CAP_SYS_ADMIN)) in blkdev_common_ioctl()
596 if (!capable(CAP_SYS_ADMIN)) in blkdev_common_ioctl()
/linux/drivers/platform/x86/dell/
H A Ddell-smbios-base.c256 capable(token_whitelist[i].need_capability)) { in dell_smbios_call_filter()
270 capable(call_whitelist[i].need_capability)) { in dell_smbios_call_filter()
282 if (capable(CAP_SYS_RAWIO)) { in dell_smbios_call_filter()
430 if (!capable(CAP_SYS_ADMIN)) in location_show()
441 if (!capable(CAP_SYS_ADMIN)) in value_show()
/linux/net/bluetooth/
H A Dhci_sock.c1012 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1023 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1028 if (!capable(CAP_NET_ADMIN)) in hci_sock_bound_ioctl()
1121 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1126 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1131 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1136 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1148 if (!capable(CAP_NET_ADMIN)) in hci_sock_ioctl()
1255 if (capable(CAP_NET_ADMIN)) in hci_sock_bind()
1368 if (!capable(CAP_NET_RAW)) { in hci_sock_bind()
[all …]
/linux/arch/x86/kernel/
H A Dioport.c73 if (turn_on && (!capable(CAP_SYS_RAWIO) || in ksys_ioperm()
189 if (!capable(CAP_SYS_RAWIO) || in SYSCALL_DEFINE1()

12345678910>>...36