Searched refs:file_ns_capable (Results 1 – 14 of 14) sorted by relevance
/openbmc/linux/kernel/ |
H A D | capability.c | 453 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable() function 465 EXPORT_SYMBOL(file_ns_capable);
|
H A D | user_namespace.c | 913 if (!file_ns_capable(file, map_ns->parent, CAP_SETFCAP)) in verify_root_map() 974 if (cap_valid(cap_setid) && !file_ns_capable(file, map_ns, CAP_SYS_ADMIN)) in map_write() 1196 file_ns_capable(file, ns->parent, cap_setid)) in new_idmap_permitted()
|
H A D | resource.c | 120 if (file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) { in r_show()
|
H A D | seccomp.c | 2486 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_seccomp_cache()
|
/openbmc/linux/security/safesetid/ |
H A 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()
|
/openbmc/linux/include/linux/ |
H A D | capability.h | 193 extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap);
|
/openbmc/linux/kernel/time/ |
H A D | namespace.c | 393 if (!file_ns_capable(file, time_ns->user_ns, CAP_SYS_TIME)) { in proc_timens_set_offset()
|
/openbmc/linux/kernel/cgroup/ |
H A D | cgroup-v1.c | 558 !file_ns_capable(of->file, &init_user_ns, CAP_SYS_ADMIN)) in cgroup_release_agent_write()
|
/openbmc/linux/net/netlink/ |
H A D | af_netlink.c | 867 file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && in __netlink_ns_capable() 1441 if (!file_ns_capable(sk->sk_socket->file, p->net->user_ns, in do_one_broadcast()
|
/openbmc/linux/drivers/pci/ |
H A D | pci-sysfs.c | 702 if (file_ns_capable(filp, &init_user_ns, CAP_SYS_ADMIN)) in pci_read_config()
|
/openbmc/linux/fs/proc/ |
H A D | task_mmu.c | 1678 pm.show_pfn = file_ns_capable(file, &init_user_ns, CAP_SYS_ADMIN); in pagemap_read()
|
H A D | base.c | 480 if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN)) in proc_pid_stack()
|
/openbmc/linux/net/core/ |
H A D | sock.c | 170 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
|
H A D | skbuff.c | 5258 file_ns_capable(sk->sk_socket->file, &init_user_ns, CAP_NET_RAW); in skb_may_tx_timestamp()
|