Home
last modified time | relevance | path

Searched refs:current_ns (Results 1 – 6 of 6) sorted by relevance

/linux/security/apparmor/
H A Dprocattr.c34 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr() local
37 if (!aa_ns_visible(current_ns, ns, true)) { in aa_getprocattr()
38 aa_put_ns(current_ns); in aa_getprocattr()
42 len = aa_label_snxprint(NULL, 0, current_ns, label, in aa_getprocattr()
49 aa_put_ns(current_ns); in aa_getprocattr()
53 len = aa_label_snxprint(*string, len + 2, current_ns, label, in aa_getprocattr()
57 aa_put_ns(current_ns); in aa_getprocattr()
65 aa_put_ns(current_ns); in aa_getprocattr()
/linux/net/core/
H A Dscm.c510 struct user_namespace *current_ns = current_user_ns(); in __scm_recv_common() local
513 .uid = from_kuid_munged(current_ns, scm->creds.uid), in __scm_recv_common()
514 .gid = from_kgid_munged(current_ns, scm->creds.gid), in __scm_recv_common()
H A Dsock.c1703 struct user_namespace *current_ns = current_user_ns(); in cred_to_ucred() local
1705 ucred->uid = from_kuid_munged(current_ns, cred->euid); in cred_to_ucred()
1706 ucred->gid = from_kgid_munged(current_ns, cred->egid); in cred_to_ucred()
/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek.c1653 s64 base_time_ns, current_ns; in hellcreek_schedule_startable() local
1664 current_ns = hellcreek->seconds * NSEC_PER_SEC + hellcreek->last_ts; in hellcreek_schedule_startable()
1670 return base_time_ns - current_ns < (s64)4 * NSEC_PER_SEC; in hellcreek_schedule_startable()
1677 s64 current_ns; in hellcreek_start_schedule() local
1685 current_ns = hellcreek->seconds * NSEC_PER_SEC + hellcreek->last_ts; in hellcreek_start_schedule()
1688 current_time = ns_to_ktime(current_ns); in hellcreek_start_schedule()
/linux/Documentation/networking/
H A Dsysfs-tagging.rst44 - current_ns() which returns current's namespace
/linux/drivers/nvme/host/
H A Dmultipath.c1106 struct nvme_ns *current_ns; in numa_nodes_show() local
1117 current_ns = srcu_dereference(head->current_path[node], in numa_nodes_show()
1119 if (ns == current_ns) in numa_nodes_show()