/kernel/linux/linux-5.10/net/bridge/ |
D | br_ioctl.c | 89 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in add_del_if() 181 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 188 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 195 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 202 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 242 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 249 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 258 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 272 if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN)) in old_dev_ioctl() 335 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in old_deviceless() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/linux/ |
D | capability.h | 211 extern bool ns_capable(struct user_namespace *ns, int cap); 237 static inline bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() function 266 return ns_capable(ns, CAP_CHECKPOINT_RESTORE) || in checkpoint_restore_ns_capable() 267 ns_capable(ns, CAP_SYS_ADMIN); in checkpoint_restore_ns_capable()
|
/kernel/linux/linux-5.10/kernel/ |
D | capability.c | 394 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable() function 398 EXPORT_SYMBOL(ns_capable); 449 return ns_capable(&init_user_ns, cap); in capable() 506 return ns_capable(ns, cap) && privileged_wrt_inode_uidgid(ns, inode); in capable_wrt_inode_uidgid()
|
D | utsname.c | 148 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in utsns_install() 149 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in utsns_install()
|
D | pid_namespace.c | 388 if (!ns_capable(new->user_ns, CAP_SYS_ADMIN) || in pidns_install() 389 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in pidns_install()
|
D | nsproxy.c | 165 } else if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_namespaces() 228 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in unshare_nsproxy_namespaces()
|
D | ucount.c | 42 if (ns_capable(user_ns, CAP_SYS_RESOURCE)) in set_permissions()
|
D | reboot.c | 318 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT)) in SYSCALL_DEFINE4()
|
/kernel/linux/linux-5.10/net/8021q/ |
D | vlan.c | 574 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 584 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 593 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 602 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 617 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler() 624 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in vlan_ioctl_handler()
|
/kernel/linux/linux-5.10/ipc/ |
D | namespace.c | 204 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in ipcns_install() 205 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in ipcns_install()
|
D | util.c | 534 !ns_capable(ns->user_ns, CAP_IPC_OWNER)) in ipcperms() 709 ns_capable(ns->user_ns, CAP_SYS_ADMIN)) in ipcctl_obtain_check()
|
/kernel/linux/linux-5.10/security/ |
D | commoncap.c | 149 if (ns_capable(child_cred->user_ns, CAP_SYS_PTRACE)) in cap_ptrace_access_check() 514 if (ns_capable(inode->i_sb->s_user_ns, CAP_SETFCAP)) in cap_convert_nscap() 863 if (!ns_capable(new->user_ns, CAP_SETUID) || in cap_bprm_creds_from_file() 949 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in cap_inode_setxattr() 984 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in cap_inode_removexattr() 1111 if (!is_subset && !ns_capable(__task_cred(p)->user_ns, CAP_SYS_NICE)) in cap_safe_nice() 1164 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
|
/kernel/linux/linux-5.10/fs/ |
D | fsopen.c | 122 if (!ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2() 165 if (!ns_capable(current->nsproxy->mnt_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE3() 249 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) { in vfs_fsconfig_locked()
|
D | attr.c | 29 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chown_ok() 42 ns_capable(inode->i_sb->s_user_ns, CAP_CHOWN)) in chgrp_ok()
|
D | ioctl.c | 594 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsfreeze() 611 if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) in ioctl_fsthaw()
|
/kernel/linux/linux-5.10/net/core/ |
D | scm.c | 55 ns_capable(task_active_pid_ns(current)->user_ns, CAP_SYS_ADMIN)) && in scm_check_creds() 57 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && in scm_check_creds() 59 gid_eq(gid, cred->sgid)) || ns_capable(cred->user_ns, CAP_SETGID))) { in scm_check_creds()
|
D | dev_ioctl.c | 456 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl() 498 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in dev_ioctl()
|
/kernel/linux/linux-5.10/security/yama/ |
D | yama_lsm.c | 371 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check() 377 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_options.c | 409 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in __ip_options_compile() 444 if ((!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) || opt->cipso) { in __ip_options_compile() 457 if (!skb && !ns_capable(net->user_ns, CAP_NET_RAW)) { in __ip_options_compile()
|
/kernel/linux/linux-5.10/kernel/time/ |
D | namespace.c | 297 if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) || in timens_install() 298 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in timens_install()
|
/kernel/linux/linux-5.10/security/keys/ |
D | persistent.c | 149 !ns_capable(ns, CAP_SETUID)) in keyctl_get_persistent()
|
/kernel/linux/linux-5.10/net/ieee802154/ |
D | socket.c | 898 if (!ns_capable(net->user_ns, CAP_NET_ADMIN) && in dgram_setsockopt() 899 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt() 922 if (!ns_capable(net->user_ns, CAP_NET_ADMIN) && in dgram_setsockopt() 923 !ns_capable(net->user_ns, CAP_NET_RAW)) { in dgram_setsockopt()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ipv6_sockglue.c | 328 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in ipv6_set_opt_hdr() 635 if (valbool && !ns_capable(net->user_ns, CAP_NET_RAW) && in do_ipv6_setsockopt() 636 !ns_capable(net->user_ns, CAP_NET_ADMIN)) { in do_ipv6_setsockopt() 947 if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) in do_ipv6_setsockopt()
|
D | datagram.c | 870 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 890 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl() 915 if (!ns_capable(net->user_ns, CAP_NET_RAW)) { in ip6_datagram_send_ctl()
|