Home
last modified time | relevance | path

Searched refs:file_ns_capable (Results 1 – 14 of 14) sorted by relevance

/linux-5.19.10/kernel/
Dcapability.c467 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() function
479 EXPORT_SYMBOL(file_ns_capable);
Duser_namespace.c908 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()
Dresource.c120 if (file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) { in r_show()
Dseccomp.c2435 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_seccomp_cache()
/linux-5.19.10/security/safesetid/
Dsecurityfs.c240 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/
Dcapability.h255 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
/linux-5.19.10/kernel/time/
Dnamespace.c375 if (!file_ns_capable(file, time_ns->user_ns, CAP_SYS_TIME)) { in proc_timens_set_offset()
/linux-5.19.10/kernel/cgroup/
Dcgroup-v1.c559 !file_ns_capable(of->file, &init_user_ns, CAP_SYS_ADMIN)) in cgroup_release_agent_write()
/linux-5.19.10/net/netlink/
Daf_netlink.c870 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/
Dpci-sysfs.c679 if (file_ns_capable(filp, &init_user_ns, CAP_SYS_ADMIN)) in pci_read_config()
/linux-5.19.10/fs/proc/
Dtask_mmu.c1648 pm.show_pfn = file_ns_capable(file, &init_user_ns, CAP_SYS_ADMIN); in pagemap_read()
Dbase.c444 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_stack()
/linux-5.19.10/net/core/
Dsock.c165 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
Dskbuff.c4779 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()