Searched refs:kuid (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/include/linux/ |
D | uidgid.h | 153 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid() argument 155 return __kuid_val(kuid); in from_kuid() 163 static inline uid_t from_kuid_munged(struct user_namespace *to, kuid_t kuid) in from_kuid_munged() argument 165 uid_t uid = from_kuid(to, kuid); in from_kuid_munged()
|
/Linux-v5.4/kernel/ |
D | sys.c | 575 kuid_t kuid; in __sys_setuid() local 577 kuid = make_kuid(ns, uid); in __sys_setuid() 578 if (!uid_valid(kuid)) in __sys_setuid() 588 new->suid = new->uid = kuid; in __sys_setuid() 589 if (!uid_eq(kuid, old->uid)) { in __sys_setuid() 594 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid() 598 new->fsuid = new->euid = kuid; in __sys_setuid() 802 kuid_t kuid; in __sys_setfsuid() local 807 kuid = make_kuid(old->user_ns, uid); in __sys_setfsuid() 808 if (!uid_valid(kuid)) in __sys_setfsuid() [all …]
|
D | user_namespace.c | 405 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid() argument 408 return map_id_up(&targ->uid_map, __kuid_val(kuid)); in from_kuid() 430 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged() argument 433 uid = from_kuid(targ, kuid); in from_kuid_munged()
|
/Linux-v5.4/fs/nfsd/ |
D | nfs4xdr.c | 571 kuid_t kuid = make_kuid(userns, uid); in nfsd4_decode_cb_sec() local 573 if (uid_valid(kuid) && gid_valid(kgid)) { in nfsd4_decode_cb_sec() 574 cbs->uid = kuid; in nfsd4_decode_cb_sec()
|
/Linux-v5.4/net/core/ |
D | filter.c | 4200 kuid_t kuid; in BPF_CALL_1() local 4204 kuid = sock_net_uid(sock_net(sk), sk); in BPF_CALL_1() 4205 return from_kuid_munged(sock_net(sk)->user_ns, kuid); in BPF_CALL_1()
|