Searched refs:file_ns_capable (Results 1 – 14 of 14) sorted by relevance
/linux-5.19.10/kernel/ |
D | capability.c | 467 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() function 479 EXPORT_SYMBOL(file_ns_capable);
|
D | user_namespace.c | 908 if (!file_ns_capable(file, map_ns->parent, CAP_SETFCAP)) in verify_root_map() 969 if (cap_valid(cap_setid) && !file_ns_capable(file, map_ns, CAP_SYS_ADMIN)) in map_write() 1191 file_ns_capable(file, ns->parent, cap_setid)) in new_idmap_permitted()
|
D | resource.c | 120 if (file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) { in r_show()
|
D | seccomp.c | 2435 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_seccomp_cache()
|
/linux-5.19.10/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-5.19.10/include/linux/ |
D | capability.h | 255 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
|
/linux-5.19.10/kernel/time/ |
D | namespace.c | 375 if (!file_ns_capable(file, time_ns->user_ns, CAP_SYS_TIME)) { in proc_timens_set_offset()
|
/linux-5.19.10/kernel/cgroup/ |
D | cgroup-v1.c | 559 !file_ns_capable(of->file, &init_user_ns, CAP_SYS_ADMIN)) in cgroup_release_agent_write()
|
/linux-5.19.10/net/netlink/ |
D | af_netlink.c | 870 file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && in __netlink_ns_capable() 1437 if (!file_ns_capable(sk->sk_socket->file, p->net->user_ns, in do_one_broadcast()
|
/linux-5.19.10/drivers/pci/ |
D | pci-sysfs.c | 679 if (file_ns_capable(filp, &init_user_ns, CAP_SYS_ADMIN)) in pci_read_config()
|
/linux-5.19.10/fs/proc/ |
D | task_mmu.c | 1648 pm.show_pfn = file_ns_capable(file, &init_user_ns, CAP_SYS_ADMIN); in pagemap_read()
|
D | base.c | 444 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_stack()
|
/linux-5.19.10/net/core/ |
D | sock.c | 165 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
|
D | skbuff.c | 4779 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
|