Lines Matching refs:gid
39 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() argument
41 return gid.val; in __kgid_val()
49 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() argument
116 static inline bool gid_valid(kgid_t gid) in gid_valid() argument
118 return __kgid_val(gid) != (gid_t) -1; in gid_valid()
124 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
127 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
129 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
136 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
138 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping()
148 static inline kgid_t make_kgid(struct user_namespace *from, gid_t gid) in make_kgid() argument
150 return KGIDT_INIT(gid); in make_kgid()
173 gid_t gid = from_kgid(to, kgid); in from_kgid_munged() local
174 if (gid == (gid_t)-1) in from_kgid_munged()
175 gid = overflowgid; in from_kgid_munged()
176 return gid; in from_kgid_munged()
184 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
186 return gid_valid(gid); in kgid_has_mapping()