Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 37) sorted by relevance

12

/net/core/
Dscm.c50 kuid_t uid = make_kuid(cred->user_ns, creds->uid); in scm_check_creds() local
53 if (!uid_valid(uid) || !gid_valid(gid)) in scm_check_creds()
58 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || in scm_check_creds()
59 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && in scm_check_creds()
167 kuid_t uid; in __scm_send() local
188 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
190 if (!uid_valid(uid) || !gid_valid(gid)) in __scm_send()
193 p->creds.uid = uid; in __scm_send()
/net/sunrpc/
Dauth_generic.c60 .uid = RPC_MACHINE_CRED_USERID, in rpc_lookup_machine_cred()
85 ((u64)from_kuid(&init_user_ns, acred->uid) << in generic_hash_cred()
110 gcred->acred.uid = acred->uid; in generic_create_cred()
122 from_kuid(&init_user_ns, acred->uid), in generic_create_cred()
156 !uid_eq(gcred->acred.uid, acred->uid) || in machine_cred_match()
174 if (!uid_eq(gcred->acred.uid, acred->uid) || in generic_match()
Dsvcauth_unix.c413 kuid_t uid; member
417 static int unix_gid_hash(kuid_t uid) in unix_gid_hash() argument
419 return hash_long(from_kuid(&init_user_ns, uid), GID_HASHBITS); in unix_gid_hash()
436 return uid_eq(orig->uid, new->uid); in unix_gid_match()
442 new->uid = item->uid; in unix_gid_init()
468 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); in unix_gid_request()
473 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
480 kuid_t uid; in unix_gid_parse() local
495 uid = make_kuid(&init_user_ns, id); in unix_gid_parse()
496 ug.uid = uid; in unix_gid_parse()
[all …]
Dauth_unix.c53 ((u64)from_kuid(&init_user_ns, acred->uid) << in unx_hash_cred()
74 from_kuid(&init_user_ns, acred->uid), in unx_create_cred()
130 if (!uid_eq(cred->uc_uid, acred->uid) || !gid_eq(cred->uc_gid, acred->gid)) in unx_match()
Dauth.c631 acred.uid = cred->fsuid; in rpcauth_lookupcred()
652 cred->cr_uid = acred->uid; in rpcauth_init_cred()
670 .uid = GLOBAL_ROOT_UID, in rpcauth_bind_root_cred()
/net/ax25/
Dax25_uid.c53 ax25_uid_assoc *ax25_findbyuid(kuid_t uid) in ax25_findbyuid() argument
59 if (uid_eq(ax25_uid->uid, uid)) { in ax25_findbyuid()
84 res = from_kuid_munged(current_user_ns(), ax25_uid->uid); in ax25_uid_ioctl()
111 ax25_uid->uid = sax25_kuid; in ax25_uid_ioctl()
178 from_kuid_munged(seq_user_ns(seq), pt->uid), in ax25_uid_seq_show()
/net/netfilter/
Dxt_qtaguid.c150 || unlikely(uid_eq(current_fsuid(), xt_qtaguid_ctrl_file->uid)); in can_manipulate_uids()
153 static bool can_impersonate_uid(kuid_t uid) in can_impersonate_uid() argument
155 return uid_eq(uid, current_fsuid()) || can_manipulate_uids(); in can_impersonate_uid()
158 static bool can_read_other_uid_stats(kuid_t uid) in can_read_other_uid_stats() argument
162 || unlikely(!from_kuid(&init_user_ns, current_fsuid())) || uid_eq(uid, current_fsuid()) in can_read_other_uid_stats()
164 || unlikely(uid_eq(current_fsuid(), xt_qtaguid_ctrl_file->uid)); in can_read_other_uid_stats()
383 if (data->uid < this->uid) in uid_tag_data_tree_insert()
385 else if (data->uid > this->uid) in uid_tag_data_tree_insert()
397 uid_t uid) in uid_tag_data_tree_search() argument
405 if (uid < data->uid) in uid_tag_data_tree_search()
[all …]
Dxt_qtaguid_internal.h113 static inline tag_t combine_atag_with_uid(tag_t acct_tag, uid_t uid) in combine_atag_with_uid() argument
115 return acct_tag | uid; in combine_atag_with_uid()
117 static inline tag_t make_tag_from_uid(uid_t uid) in make_tag_from_uid() argument
119 return uid; in make_tag_from_uid()
314 uid_t uid; member
Dxt_IDLETIMER.c78 uid_t uid; member
148 res = snprintf(uid_msg, NLMSG_MAX_SIZE, "UID=%u", timer->uid); in notify_netlink_uevent()
317 info->timer->uid = 0; in idletimer_tg_create()
358 timer->uid = from_kuid_munged(current_user_ns(), in reset_timer()
Dxt_recent.c334 kuid_t uid; in recent_mt_check() local
408 uid = make_kuid(&init_user_ns, ip_list_uid); in recent_mt_check()
410 if (!uid_valid(uid) || !gid_valid(gid)) { in recent_mt_check()
422 proc_set_user(pde, uid, gid); in recent_mt_check()
/net/9p/
Dprotocol.c49 kfree(stbuf->uid); in p9stat_free()
171 kuid_t *uid = va_arg(ap, kuid_t *); in p9pdu_vreadf() local
177 *uid = make_kuid(&init_user_ns, in p9pdu_vreadf()
214 &stbuf->name, &stbuf->uid, in p9pdu_vreadf()
406 kuid_t uid = va_arg(ap, kuid_t); in p9pdu_vwritef() local
408 from_kuid(&init_user_ns, uid)); in p9pdu_vwritef()
437 stbuf->name, stbuf->uid, in p9pdu_vwritef()
503 p9attr->uid, in p9pdu_vwritef()
Dclient.c901 fid->uid = current_fsuid(); in p9_fid_create()
1119 fid->uid = n_uname; in p9_client_attach()
1171 fid->uid = oldfid->uid; in p9_client_walk()
1711 ret->name, ret->uid, ret->gid, ret->muid, ret->extension, in p9_client_stat()
1798 if (wst->uid) in p9_client_statsize()
1799 ret += strlen(wst->uid); in p9_client_statsize()
1833 wst->name, wst->uid, wst->gid, wst->muid, wst->extension, in p9_client_wstat()
1866 from_kuid(&init_user_ns, p9attr->uid), in p9_client_setattr()
/net/sunrpc/auth_gss/
Dauth_gss.c291 kuid_t uid; member
343 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
347 if (!uid_eq(pos->uid, uid)) in __gss_find_upcall()
370 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
437 uid_t uid = from_kuid(&init_user_ns, gss_msg->uid); in gss_encode_v0_msg() local
438 memcpy(gss_msg->databuf, &uid, sizeof(uid)); in gss_encode_v0_msg()
440 gss_msg->msg.len = sizeof(uid); in gss_encode_v0_msg()
442 BUILD_BUG_ON(sizeof(uid) > sizeof(gss_msg->databuf)); in gss_encode_v0_msg()
455 from_kuid(&init_user_ns, gss_msg->uid)); in gss_encode_v1_msg()
492 kuid_t uid, const char *service_name) in gss_alloc_msg() argument
[all …]
/net/batman-adv/
Dpacket.h286 u8 uid; member
309 u8 uid; member
338 u8 uid; member
377 u8 uid; member
Dicmp_socket.c266 icmp_header->uid = socket_client->index; in batadv_socket_write()
369 if (!batadv_socket_client_hash[icmph->uid]) { in batadv_socket_add_packet()
404 hash = batadv_socket_client_hash[icmph->uid]; in batadv_socket_receive_packet()
Dtp_meter.c584 int uid, u32 timestamp) in batadv_tp_send_msg() argument
606 icmp->uid = uid; in batadv_tp_send_msg()
695 icmp->session, icmp->uid, in batadv_tp_recv_ack()
735 icmp->uid, in batadv_tp_recv_ack()
1201 icmp->uid = socket_index; in batadv_tp_send_ack()
1470 icmp->timestamp, icmp->session, icmp->uid); in batadv_tp_recv_msg()
/net/can/
Dgw.c113 u32 uid; member
552 if (gwj->mod.uid) { in cgw_put_job()
553 if (nla_put_u32(skb, CGW_MOD_UID, gwj->mod.uid) < 0) in cgw_put_job()
773 nla_memcpy(&mod->uid, tb[CGW_MOD_UID], sizeof(u32)); in cgw_parse_attr()
839 if (mod.uid) { in cgw_create_job()
846 if (gwj->mod.uid != mod.uid) in cgw_create_job()
972 if (gwj->mod.uid || mod.uid) { in cgw_remove_job()
973 if (gwj->mod.uid != mod.uid) in cgw_remove_job()
/net/
Dsysctl_net.c57 kuid_t *uid, kgid_t *gid) in net_ctl_set_ownership() argument
65 *uid = ns_root_uid; in net_ctl_set_ownership()
/net/ipv4/
Dinet_connection_sock.c53 kuid_t uid = sock_i_uid((struct sock *)sk); in inet_csk_bind_conflict() local
73 !uid_eq(uid, sock_i_uid(sk2))))) { in inet_csk_bind_conflict()
106 kuid_t uid = sock_i_uid(sk); in inet_csk_get_port() local
163 uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
206 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
214 uid_eq(tb->fastuid, uid))) && in inet_csk_get_port()
223 if (!sk->sk_reuseport || !uid_eq(tb->fastuid, uid)) in inet_csk_get_port()
229 tb->fastuid = uid; in inet_csk_get_port()
Dinet_hashtables.c445 kuid_t uid = sock_i_uid(sk); in inet_reuseport_add_sock() local
453 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) && in inet_reuseport_add_sock()
Dudp.c147 kuid_t uid = sock_i_uid(sk); in udp_lib_lport_inuse() local
158 !uid_eq(uid, sock_i_uid(sk2))) && in udp_lib_lport_inuse()
180 kuid_t uid = sock_i_uid(sk); in udp_lib_lport_inuse2() local
193 !uid_eq(uid, sock_i_uid(sk2))) && in udp_lib_lport_inuse2()
209 kuid_t uid = sock_i_uid(sk); in udp_reuseport_add_sock() local
219 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) && in udp_reuseport_add_sock()
/net/ipv6/
Dinet6_connection_sock.c37 kuid_t uid = sock_i_uid((struct sock *)sk); in inet6_csk_bind_conflict() local
54 !uid_eq(uid, in inet6_csk_bind_conflict()
Dip6_flowlabel.c429 fl->owner.uid = current_euid(); in fl_create()
639 uid_eq(fl1->owner.uid, fl->owner.uid))) in ipv6_flowlabel_opt()
793 from_kuid_munged(seq_user_ns(seq), fl->owner.uid) : in ip6fl_seq_show()
/net/unix/
Daf_unix.c1568 UNIXCB(skb).uid = scm->creds.uid; in unix_scm_to_skb()
1599 current_uid_gid(&UNIXCB(skb).uid, &UNIXCB(skb).gid); in maybe_add_creds()
1616 current_uid_gid(&scm->creds.uid, &scm->creds.gid); in maybe_init_creds()
1627 uid_eq(u->uid, scm->creds.uid) && in unix_skb_scm_eq()
2170 scm_set_cred(&scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid); in unix_dgram_recvmsg()
2380 scm_set_cred(&scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid); in unix_stream_read_generic()
/net/nfc/nci/
Dntf.c168 memcpy(nfcv_poll->uid, data, NFC_ISO15693_UID_MAXSIZE); in nci_extract_rf_params_nfcv_passive_poll()
258 memcpy(target->iso15693_uid, nfcv_poll->uid, NFC_ISO15693_UID_MAXSIZE); in nci_add_new_protocol()

12