Searched refs:uid (Results 1 - 25 of 35) sorted by relevance

12

/net/core/
H A Dscm.c50 kuid_t uid = make_kuid(cred->user_ns, creds->uid); local
53 if (!uid_valid(uid) || !gid_valid(gid))
58 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) ||
59 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) &&
162 kuid_t uid; local
183 uid = make_kuid(current_user_ns(), creds.uid);
[all...]
H A Dfib_rules.c192 static int nla_put_uid(struct sk_buff *skb, int idx, kuid_t uid) argument
194 return nla_put_u32(skb, idx, from_kuid_munged(current_user_ns(), uid));
H A Dsock.c974 ucred->uid = ucred->gid = -1;
978 ucred->uid = from_kuid_munged(current_ns, cred->euid);
1658 kuid_t uid; local
1661 uid = sk->sk_socket ? SOCK_INODE(sk->sk_socket)->i_uid : GLOBAL_ROOT_UID;
1663 return uid;
/net/sunrpc/
H A Dauth_generic.c53 .uid = RPC_MACHINE_CRED_USERID,
95 gcred->acred.uid = acred->uid;
104 dprintk("RPC: allocated %s cred %p for uid %d gid %d\n",
107 from_kuid(&init_user_ns, acred->uid),
141 !uid_eq(gcred->acred.uid, acred->uid) ||
159 if (!uid_eq(gcred->acred.uid, acred->uid) ||
H A Dsvcauth_unix.c26 * AUTHNULL is treated just like AUTHUNIX except that the uid/gid
413 kuid_t uid; member in struct:unix_gid
417 static int unix_gid_hash(kuid_t uid) argument
419 return hash_long(from_kuid(&init_user_ns, uid), GID_HASHBITS);
436 return uid_eq(orig->uid, new->uid);
442 new->uid = item->uid;
468 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid));
473 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
480 kuid_t uid; local
615 unix_gid_lookup(struct cache_detail *cd, kuid_t uid) argument
628 unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) argument
[all...]
H A Dauth_unix.c67 dprintk("RPC: allocating UNIX cred for uid %d gid %d\n",
68 from_kuid(&init_user_ns, acred->uid),
124 if (!uid_eq(cred->uc_uid, acred->uid) || !gid_eq(cred->uc_gid, acred->gid))
H A Dauth.c554 nr = hash_long(from_kuid(&init_user_ns, acred->uid), cache->hashbits);
631 acred.uid = cred->fsuid;
652 cred->cr_uid = acred->uid;
670 .uid = GLOBAL_ROOT_UID,
/net/netfilter/
H A Dxt_qtaguid_internal.h96 * d is for the totals for that uid, including all untagged traffic.
113 static inline tag_t combine_atag_with_uid(tag_t acct_tag, uid_t uid) argument
115 return acct_tag | uid;
117 static inline tag_t make_tag_from_uid(uid_t uid) argument
119 return uid;
155 * Userspace can activate another set for a given uid being tracked.
252 * the uid that owns the socket.
308 * The qtu uid data is used to track resources that are created directly or
309 * indirectly by processes (uid tracked).
310 * It is shared by the processes with the same uid
316 uid_t uid; member in struct:uid_tag_data
[all...]
H A Dxt_qtaguid.c98 * Control how qtaguid data is tracked per proc/uid.
149 || unlikely(uid_eq(current_fsuid(), xt_qtaguid_ctrl_file->uid));
152 static bool can_impersonate_uid(kuid_t uid) argument
154 return uid_eq(uid, current_fsuid()) || can_manipulate_uids();
157 static bool can_read_other_uid_stats(kuid_t uid) argument
161 || unlikely(!from_kuid(&init_user_ns, current_fsuid())) || uid_eq(uid, current_fsuid())
163 || unlikely(uid_eq(current_fsuid(), xt_qtaguid_ctrl_file->uid));
187 " data.tag=0x%llx (uid=%u) res=%d\n",
209 " (uid=%u)\n", __func__,
318 "erase st: sk=%p tag=0x%llx (uid
395 uid_tag_data_tree_search(struct rb_root *root, uid_t uid) argument
422 get_uid_data(uid_t uid, bool *found_res) argument
492 uid_t uid = get_uid_from_tag(full_tag); local
1278 if_tag_stat_update(const char *ifname, uid_t uid, const struct sock *sk, enum ifs_tx_rx direction, int proto, int bytes) argument
1615 account_for_uid(const struct sk_buff *skb, const struct sock *alternate_sk, uid_t uid, struct xt_action_param *par) argument
1930 uid_t uid; local
1993 kuid_t uid; local
2155 uid_t uid = 0; local
2215 kuid_t uid; local
[all...]
H A Dxt_IDLETIMER.c77 uid_t uid; member in struct:idletimer_tg
147 res = snprintf(uid_msg, NLMSG_MAX_SIZE, "UID=%u", timer->uid);
316 info->timer->uid = 0;
355 /* Stores the uid resposible for waking up the radio */
357 timer->uid = from_kuid_munged(current_user_ns(),
H A Dxt_recent.c326 kuid_t uid; local
387 uid = make_kuid(&init_user_ns, ip_list_uid);
389 if (!uid_valid(uid) || !gid_valid(gid)) {
401 proc_set_user(pde, uid, gid);
H A Dxt_qtaguid_print.c50 "tag_t@%p{tag=0x%llx, uid=%u}",
258 "uid=%u, num_active_acct_tags=%d, "
262 utd, utd->uid,
H A Dnfnetlink_log.c548 __be32 uid = htonl(from_kuid_munged(user_ns, cred->fsuid)); local
551 if (nla_put_be32(inst->skb, NFULA_UID, uid) ||
650 + nla_total_size(sizeof(u_int32_t)) /* uid */
/net/ax25/
H A Dax25_uid.c54 ax25_uid_assoc *ax25_findbyuid(kuid_t uid) argument
60 if (uid_eq(ax25_uid->uid, uid)) {
85 res = from_kuid_munged(current_user_ns(), ax25_uid->uid);
112 ax25_uid->uid = sax25_kuid;
179 from_kuid_munged(seq_user_ns(seq), pt->uid),
/net/9p/
H A Dprotocol.c48 kfree(stbuf->uid);
88 u - numeric uid
169 kuid_t *uid = va_arg(ap, kuid_t *); local
175 *uid = make_kuid(&init_user_ns,
212 &stbuf->name, &stbuf->uid,
404 kuid_t uid = va_arg(ap, kuid_t); local
406 from_kuid(&init_user_ns, uid));
435 stbuf->name, stbuf->uid,
511 p9attr->uid,
H A Dclient.c908 fid->uid = current_fsuid();
1177 fid->uid = oldfid->uid;
1715 "<<< name=%s uid=%s gid=%s muid=%s extension=(%s)\n"
1716 "<<< uid=%d gid=%d n_muid=%d\n",
1720 ret->name, ret->uid, ret->gid, ret->muid, ret->extension,
1802 /* name[s] uid[s] gid[s] muid[s] */
1807 if (wst->uid)
1808 ret += strlen(wst->uid);
1837 " name=%s uid
[all...]
/net/batman-adv/
H A Dpacket.h237 * @uid: local ICMP socket identifier
251 uint8_t uid; member in struct:batadv_icmp_header
263 * @uid: local ICMP socket identifier
274 uint8_t uid; member in struct:batadv_icmp_packet
289 * @uid: local ICMP socket identifier
301 uint8_t uid; member in struct:batadv_icmp_packet_rr
H A Dicmp_socket.c244 icmp_header->uid = socket_client->index;
347 if (!batadv_socket_client_hash[icmph->uid]) {
382 hash = batadv_socket_client_hash[icmph->uid];
/net/sunrpc/auth_gss/
H A Dauth_gss.c291 kuid_t uid; member in struct:gss_upcall_msg
343 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid) argument
347 if (!uid_eq(pos->uid, uid))
358 * If an upcall owned by our uid already exists, then we return a reference
368 old = __gss_find_upcall(pipe, gss_msg->uid);
435 uid_t uid = from_kuid(&init_user_ns, gss_msg->uid); local
436 memcpy(gss_msg->databuf, &uid, sizeof(uid));
489 gss_alloc_msg(struct gss_auth *gss_auth, kuid_t uid, const char *service_name) argument
535 kuid_t uid = cred->cr_uid; local
682 kuid_t uid; local
[all...]
/net/ipv4/
H A Dinet_connection_sock.c51 kuid_t uid = sock_i_uid((struct sock *)sk); local
70 !uid_eq(uid, sock_i_uid(sk2))))) {
100 kuid_t uid = sock_i_uid(sk); local
125 uid_eq(tb->fastuid, uid))) &&
186 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) &&
194 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) &&
216 tb->fastuid = uid;
224 (!sk->sk_reuseport || !uid_eq(tb->fastuid, uid)))
/net/ipv6/
H A Dinet6_connection_sock.c36 kuid_t uid = sock_i_uid((struct sock *)sk); local
52 !uid_eq(uid,
H A Dip6_flowlabel.c428 fl->owner.uid = current_euid();
633 uid_eq(fl1->owner.uid, fl->owner.uid)))
784 from_kuid_munged(seq_user_ns(seq), fl->owner.uid) :
/net/nfc/nci/
H A Dntf.c165 memcpy(nfcv_poll->uid, data, NFC_ISO15693_UID_MAXSIZE);
243 memcpy(target->iso15693_uid, nfcv_poll->uid, NFC_ISO15693_UID_MAXSIZE);
/net/unix/
H A Daf_unix.c1413 UNIXCB(skb).uid = scm->creds.uid;
1437 current_uid_gid(&UNIXCB(skb).uid, &UNIXCB(skb).gid);
1839 scm_set_cred(siocb->scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid);
2025 !uid_eq(UNIXCB(skb).uid, siocb->scm->creds.uid) ||
2030 scm_set_cred(siocb->scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid);
/net/nfc/
H A Ddigital_technology.c169 u64 uid; member in struct:digital_iso15693_inv_res
880 memcpy(target->iso15693_uid, &res->uid, sizeof(target->iso15693_uid));

Completed in 976 milliseconds

12