Lines Matching refs:idmap
119 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap);
120 void mnt_idmap_put(struct mnt_idmap *idmap);
122 vfsuid_t make_vfsuid(struct mnt_idmap *idmap,
125 vfsgid_t make_vfsgid(struct mnt_idmap *idmap,
128 kuid_t from_vfsuid(struct mnt_idmap *idmap,
131 kgid_t from_vfsgid(struct mnt_idmap *idmap,
146 static inline bool vfsuid_has_fsmapping(struct mnt_idmap *idmap, in vfsuid_has_fsmapping() argument
150 return uid_valid(from_vfsuid(idmap, fs_userns, vfsuid)); in vfsuid_has_fsmapping()
184 static inline bool vfsgid_has_fsmapping(struct mnt_idmap *idmap, in vfsgid_has_fsmapping() argument
188 return gid_valid(from_vfsgid(idmap, fs_userns, vfsgid)); in vfsgid_has_fsmapping()
223 static inline kuid_t mapped_fsuid(struct mnt_idmap *idmap, in mapped_fsuid() argument
226 return from_vfsuid(idmap, fs_userns, VFSUIDT_INIT(current_fsuid())); in mapped_fsuid()
242 static inline kgid_t mapped_fsgid(struct mnt_idmap *idmap, in mapped_fsgid() argument
245 return from_vfsgid(idmap, fs_userns, VFSGIDT_INIT(current_fsgid())); in mapped_fsgid()