Lines Matching refs:gid
31 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() argument
33 return gid.val; in __kgid_val()
41 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() argument
108 static inline bool gid_valid(kgid_t gid) in gid_valid() argument
110 return __kgid_val(gid) != (gid_t) -1; in gid_valid()
116 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
119 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
121 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
128 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
130 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping()
143 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() argument
145 return KGIDT_INIT(gid); in make_kgid()
168 gid_t gid = from_kgid(to, kgid); in from_kgid_munged() local
169 if (gid == (gid_t)-1) in from_kgid_munged()
170 gid = overflowgid; in from_kgid_munged()
171 return gid; in from_kgid_munged()
179 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
181 return gid_valid(gid); in kgid_has_mapping()