Searched refs:file_ns_capable (Results 1 – 13 of 13) sorted by relevance
/Linux-v5.15/kernel/ |
D | capability.c | 466 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() function 478 EXPORT_SYMBOL(file_ns_capable);
|
D | user_namespace.c | 896 if (!file_ns_capable(file, map_ns->parent, CAP_SETFCAP)) in verify_root_map() 957 if (cap_valid(cap_setid) && !file_ns_capable(file, map_ns, CAP_SYS_ADMIN)) in map_write() 1179 file_ns_capable(file, ns->parent, cap_setid)) in new_idmap_permitted()
|
D | resource.c | 116 if (file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) { in r_show()
|
D | seccomp.c | 2388 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_seccomp_cache()
|
/Linux-v5.15/security/safesetid/ |
D | securityfs.c | 240 if (!file_ns_capable(file, &init_user_ns, CAP_MAC_ADMIN)) in safesetid_uid_file_write() 254 if (!file_ns_capable(file, &init_user_ns, CAP_MAC_ADMIN)) in safesetid_gid_file_write()
|
/Linux-v5.15/include/linux/ |
D | capability.h | 255 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
|
/Linux-v5.15/kernel/time/ |
D | namespace.c | 375 if (!file_ns_capable(file, time_ns->user_ns, CAP_SYS_TIME)) { in proc_timens_set_offset()
|
/Linux-v5.15/net/netlink/ |
D | af_netlink.c | 870 file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && in __netlink_ns_capable() 1439 if (!file_ns_capable(sk->sk_socket->file, p->net->user_ns, in do_one_broadcast()
|
/Linux-v5.15/drivers/pci/ |
D | pci-sysfs.c | 679 if (file_ns_capable(filp, &init_user_ns, CAP_SYS_ADMIN)) in pci_read_config()
|
/Linux-v5.15/fs/proc/ |
D | task_mmu.c | 1602 pm.show_pfn = file_ns_capable(file, &init_user_ns, CAP_SYS_ADMIN); in pagemap_read()
|
D | base.c | 442 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_stack()
|
/Linux-v5.15/net/core/ |
D | sock.c | 162 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
|
D | skbuff.c | 4877 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
|