Lines Matching refs:uid
34 static inline uid_t __kuid_val(kuid_t uid) in __kuid_val() argument
36 return uid.val; in __kuid_val()
44 static inline uid_t __kuid_val(kuid_t uid) in __kuid_val() argument
111 static inline bool uid_valid(kuid_t uid) in uid_valid() argument
113 return __kuid_val(uid) != (uid_t) -1; in uid_valid()
123 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid);
126 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid);
128 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid);
131 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument
133 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping()
143 static inline kuid_t make_kuid(struct user_namespace *from, uid_t uid) in make_kuid() argument
145 return KUIDT_INIT(uid); in make_kuid()
165 uid_t uid = from_kuid(to, kuid); in from_kuid_munged() local
166 if (uid == (uid_t)-1) in from_kuid_munged()
167 uid = overflowuid; in from_kuid_munged()
168 return uid; in from_kuid_munged()
179 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) in kuid_has_mapping() argument
181 return uid_valid(uid); in kuid_has_mapping()