Searched refs:fs_userns (Results 1 - 7 of 7) sorted by last modified time

/linux-master/include/linux/
H A Dfs.h1531 struct user_namespace *fs_userns = sb->s_user_ns; local
1535 kuid = mapped_fsuid(idmap, fs_userns);
1538 kgid = mapped_fsgid(idmap, fs_userns);
1541 return kuid_has_mapping(fs_userns, kuid) &&
1542 kgid_has_mapping(fs_userns, kgid);
H A Dmnt_idmapping.h122 struct user_namespace *fs_userns, kuid_t kuid);
125 struct user_namespace *fs_userns, kgid_t kgid);
128 struct user_namespace *fs_userns, vfsuid_t vfsuid);
131 struct user_namespace *fs_userns, vfsgid_t vfsgid);
136 * @fs_userns: the filesystem's idmapping
146 struct user_namespace *fs_userns,
149 return uid_valid(from_vfsuid(idmap, fs_userns, vfsuid));
174 * @fs_userns: the filesystem's idmapping
184 struct user_namespace *fs_userns,
187 return gid_valid(from_vfsgid(idmap, fs_userns, vfsgi
145 vfsuid_has_fsmapping(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsuid_t vfsuid) argument
183 vfsgid_has_fsmapping(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsgid_t vfsgid) argument
222 mapped_fsuid(struct mnt_idmap *idmap, struct user_namespace *fs_userns) argument
241 mapped_fsgid(struct mnt_idmap *idmap, struct user_namespace *fs_userns) argument
[all...]
/linux-master/fs/
H A Dposix_acl.c379 struct user_namespace *fs_userns = i_user_ns(inode); local
395 vfsuid = make_vfsuid(idmap, fs_userns,
409 vfsgid = make_vfsgid(idmap, fs_userns,
895 struct user_namespace *fs_userns, *caller_userns; local
909 fs_userns = i_user_ns(inode);
917 vfsuid = make_vfsuid(idmap, fs_userns, acl_e->e_uid);
922 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid);
1056 struct user_namespace *fs_userns,
1064 acl_e->e_uid = from_vfsuid(idmap, fs_userns,
1068 acl_e->e_gid = from_vfsgid(idmap, fs_userns,
1055 vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, struct user_namespace *fs_userns, struct posix_acl *acl) argument
[all...]
H A Dopen.c758 struct user_namespace *fs_userns; local
770 fs_userns = i_user_ns(inode);
787 from_vfsuid(idmap, fs_userns, newattrs.ia_vfsuid),
788 from_vfsgid(idmap, fs_userns, newattrs.ia_vfsgid));
H A Dmnt_idmapping.c52 * @fs_userns: the filesystem's idmapping
55 * Take a @kuid and remap it from @fs_userns into @idmap. Use this
66 * If @kuid has no mapping in either @idmap or @fs_userns INVALID_UID is
71 struct user_namespace *fs_userns,
78 if (initial_idmapping(fs_userns))
81 uid = from_kuid(fs_userns, kuid);
91 * @fs_userns: the filesystem's idmapping
94 * Take a @kgid and remap it from @fs_userns into @idmap. Use this
105 * If @kgid has no mapping in either @idmap or @fs_userns INVALID_GID is
109 struct user_namespace *fs_userns, kgid_
70 make_vfsuid(struct mnt_idmap *idmap, struct user_namespace *fs_userns, kuid_t kuid) argument
108 make_vfsgid(struct mnt_idmap *idmap, struct user_namespace *fs_userns, kgid_t kgid) argument
136 from_vfsuid(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsuid_t vfsuid) argument
163 from_vfsgid(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsgid_t vfsgid) argument
[all...]
H A Dnamespace.c4293 struct user_namespace *fs_userns = m->mnt_sb->s_user_ns; local
4318 if (!ns_capable(fs_userns, CAP_SYS_ADMIN))
/linux-master/fs/overlayfs/
H A Dinode.c352 struct user_namespace *fs_userns = i_user_ns(realinode); local
361 vfsuid = make_vfsuid(idmap, fs_userns, e->e_uid);
365 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid);

Completed in 246 milliseconds