/linux-master/fs/ |
H A D | mnt_idmapping.c | 51 * @idmap: the mount's idmapping 55 * Take a @kuid and remap it from @fs_userns into @idmap. Use this 65 * Return: @kuid mapped according to @idmap. 66 * If @kuid has no mapping in either @idmap or @fs_userns INVALID_UID is 70 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, argument 76 if (idmap == &nop_mnt_idmap) 84 return VFSUIDT_INIT_RAW(map_id_down(&idmap->uid_map, uid)); 90 * @idmap: the mount's idmapping 94 * Take a @kgid and remap it from @fs_userns into @idmap. Use this 104 * Return: @kgid mapped according to @idmap 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 256 free_mnt_idmap(struct mnt_idmap *idmap) argument 271 struct mnt_idmap *idmap; local 297 mnt_idmap_get(struct mnt_idmap *idmap) argument 313 mnt_idmap_put(struct mnt_idmap *idmap) argument [all...] |
H A D | attr.c | 25 * @idmap: idmap of the mount @inode was found from 35 int setattr_should_drop_sgid(struct mnt_idmap *idmap, argument 44 if (!in_group_or_capable(idmap, inode, i_gid_into_vfsgid(idmap, inode))) 53 * @idmap: idmap of the mount @inode was found from 65 int setattr_should_drop_suidgid(struct mnt_idmap *idmap, argument 75 kill |= setattr_should_drop_sgid(idmap, inode); 86 * @idmap 96 chown_ok(struct mnt_idmap *idmap, const struct inode *inode, vfsuid_t ia_vfsuid) argument 123 chgrp_ok(struct mnt_idmap *idmap, const struct inode *inode, vfsgid_t ia_vfsgid) argument 163 setattr_prepare(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) argument 301 setattr_copy(struct mnt_idmap *idmap, struct inode *inode, const struct iattr *attr) argument 324 may_setattr(struct mnt_idmap *idmap, struct inode *inode, unsigned int ia_valid) argument 379 notify_change(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr, struct inode **delegated_inode) argument [all...] |
H A D | bad_inode.c | 30 static int bad_inode_create(struct mnt_idmap *idmap, argument 54 static int bad_inode_symlink(struct mnt_idmap *idmap, argument 61 static int bad_inode_mkdir(struct mnt_idmap *idmap, struct inode *dir, argument 72 static int bad_inode_mknod(struct mnt_idmap *idmap, struct inode *dir, argument 78 static int bad_inode_rename2(struct mnt_idmap *idmap, argument 92 static int bad_inode_permission(struct mnt_idmap *idmap, argument 98 static int bad_inode_getattr(struct mnt_idmap *idmap, argument 105 static int bad_inode_setattr(struct mnt_idmap *idmap, argument 148 static int bad_inode_tmpfile(struct mnt_idmap *idmap, argument 155 static int bad_inode_set_acl(struct mnt_idmap *idmap, argument [all...] |
H A D | xattr.c | 85 * @idmap: idmap of the mount the inode was found from 97 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode) argument 103 if (HAS_UNMAPPED_ID(idmap, inode)) 113 xattr_permission(struct mnt_idmap *idmap, struct inode *inode, argument 119 ret = may_write_xattr(idmap, inode); 151 !inode_owner_or_capable(idmap, inode)) 155 return inode_permission(idmap, inode, mask); 184 __vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, argument 200 return handler->set(handler, idmap, dentr 222 __vfs_setxattr_noperm(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags) argument 275 __vfs_setxattr_locked(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags, struct inode **delegated_inode) argument 304 vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags) argument 338 xattr_getsecurity(struct mnt_idmap *idmap, struct inode *inode, const char *name, void *value, size_t size) argument 375 vfs_getxattr_alloc(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, char **xattr_value, size_t xattr_size, gfp_t flags) argument 428 vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, void *value, size_t size) argument 504 __vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name) argument 534 __vfs_removexattr_locked(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, struct inode **delegated_inode) argument 566 vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name) argument 622 do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, struct xattr_ctx *ctx) argument 634 setxattr(struct mnt_idmap *idmap, struct dentry *d, const char __user *name, const void __user *value, size_t size, int flags) argument 721 do_getxattr(struct mnt_idmap *idmap, struct dentry *d, struct xattr_ctx *ctx) argument 752 getxattr(struct mnt_idmap *idmap, struct dentry *d, const char __user *name, void __user *value, size_t size) argument 902 removexattr(struct mnt_idmap *idmap, struct dentry *d, const char __user *name) argument [all...] |
H A D | internal.h | 58 int may_linkat(struct mnt_idmap *idmap, const struct path *link); 199 bool in_group_or_capable(struct mnt_idmap *idmap, 277 ssize_t do_getxattr(struct mnt_idmap *idmap, 282 int do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, 284 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode); 287 int do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, 289 ssize_t do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, 292 static inline int do_set_acl(struct mnt_idmap *idmap, argument 298 static inline ssize_t do_get_acl(struct mnt_idmap *idmap, argument 312 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap); [all...] |
H A D | posix_acl.c | 114 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, argument 157 acl = inode->i_op->get_acl(idmap, dentry, type); 375 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, argument 390 vfsuid = i_uid_into_vfsuid(idmap, inode); 395 vfsuid = make_vfsuid(idmap, fs_userns, 401 vfsgid = i_gid_into_vfsgid(idmap, inode); 409 vfsgid = make_vfsgid(idmap, fs_userns, 594 * @idmap: idmap of the mount @inode was found from 598 * If the dentry has been found through an idmapped mount the idmap o 605 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, umode_t mode) argument 706 posix_acl_update_mode(struct mnt_idmap *idmap, struct inode *inode, umode_t *mode_p, struct posix_acl **acl) argument 887 vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, struct inode *inode, const struct posix_acl *acl, void *buffer, size_t size) argument 935 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, int type, struct posix_acl *acl) argument 1016 simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, struct posix_acl *acl, int type) argument 1055 vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, struct user_namespace *fs_userns, struct posix_acl *acl) argument 1089 vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl) argument 1166 vfs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name) argument 1210 vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name) argument 1263 do_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, const void *kvalue, size_t size) argument 1284 do_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, void *kvalue, size_t size) argument [all...] |
/linux-master/fs/nfs/ |
H A D | nfs4idmap.c | 2 * fs/nfs/idmap.c 65 struct idmap *idmap; member in struct:idmap_legacy_upcalldata 68 struct idmap { struct 76 static struct user_namespace *idmap_userns(const struct idmap *idmap) argument 78 if (idmap && idmap->user_ns) 79 return idmap->user_ns; 280 const char *type, struct idmap *idma 279 nfs_idmap_request_key(const char *name, size_t namelen, const char *type, struct idmap *idmap) argument 305 nfs_idmap_get_key(const char *name, size_t namelen, const char *type, void *data, size_t data_size, struct idmap *idmap) argument 350 nfs_idmap_lookup_name(__u32 id, const char *type, char *buf, size_t buflen, struct idmap *idmap) argument 365 nfs_idmap_lookup_id(const char *name, size_t namelen, const char *type, __u32 *id, struct idmap *idmap) argument 426 struct idmap *idmap = pdo->pdo_data; local 438 struct idmap *idmap = pdo->pdo_data; local 457 struct idmap *idmap; local 498 struct idmap *idmap = clp->cl_idmap; local 511 nfs_idmap_prepare_message(char *desc, struct idmap *idmap, struct idmap_msg *im, struct rpc_pipe_msg *msg) argument 553 nfs_idmap_prepare_pipe_upcall(struct idmap *idmap, struct idmap_legacy_upcalldata *data) argument 572 nfs_idmap_abort_pipe_upcall(struct idmap *idmap, struct idmap_legacy_upcalldata *data, int ret) argument 586 struct idmap *idmap = aux; local 669 struct idmap *idmap = (struct idmap *)rpci->private; local 727 struct idmap *idmap = data->idmap; local 737 struct idmap *idmap = (struct idmap *)rpci->private; local 747 struct idmap *idmap = server->nfs_client->cl_idmap; local 764 struct idmap *idmap = server->nfs_client->cl_idmap; local 781 struct idmap *idmap = server->nfs_client->cl_idmap; local 795 struct idmap *idmap = server->nfs_client->cl_idmap; local [all...] |
/linux-master/include/linux/ |
H A D | mnt_idmapping.h | 118 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap); 119 void mnt_idmap_put(struct mnt_idmap *idmap); 121 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, 124 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, 127 kuid_t from_vfsuid(struct mnt_idmap *idmap, 130 kgid_t from_vfsgid(struct mnt_idmap *idmap, 135 * @idmap: the mount's idmapping 145 static inline bool vfsuid_has_fsmapping(struct mnt_idmap *idmap, argument 149 return uid_valid(from_vfsuid(idmap, fs_userns, vfsuid)); 173 * @idmap 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...] |
H A D | posix_acl.h | 103 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, 105 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, 107 int vfs_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, 112 static inline int posix_acl_chmod(struct mnt_idmap *idmap, argument 139 static inline int vfs_set_acl(struct mnt_idmap *idmap, argument 146 static inline struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, argument 153 static inline int vfs_remove_acl(struct mnt_idmap *idmap, argument
|
/linux-master/fs/proc/ |
H A D | fd.h | 13 extern int proc_fd_permission(struct mnt_idmap *idmap,
|
/linux-master/fs/jfs/ |
H A D | jfs_acl.h | 11 int jfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
/linux-master/fs/ocfs2/ |
H A D | ioctl.h | 15 int ocfs2_fileattr_set(struct mnt_idmap *idmap,
|
H A D | acl.h | 20 int ocfs2_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
H A D | file.h | 52 int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 54 int ocfs2_getattr(struct mnt_idmap *idmap, const struct path *path, 56 int ocfs2_permission(struct mnt_idmap *idmap,
|
/linux-master/fs/xfs/ |
H A D | xfs_iops.h | 16 int xfs_vn_setattr_size(struct mnt_idmap *idmap,
|
H A D | xfs_symlink.h | 10 int xfs_symlink(struct mnt_idmap *idmap, struct xfs_inode *dp,
|
H A D | xfs_iops.c | 165 struct mnt_idmap *idmap, 199 error = xfs_create(idmap, XFS_I(dir), &name, mode, rdev, 203 error = xfs_create_tmpfile(idmap, XFS_I(dir), mode, &ip); 258 struct mnt_idmap *idmap, 264 return xfs_generic_create(idmap, dir, dentry, mode, rdev, NULL); 269 struct mnt_idmap *idmap, 275 return xfs_generic_create(idmap, dir, dentry, mode, 0, NULL); 280 struct mnt_idmap *idmap, 285 return xfs_generic_create(idmap, dir, dentry, mode | S_IFDIR, 0, NULL); 402 struct mnt_idmap *idmap, 164 xfs_generic_create( struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev, struct file *tmpfile) argument 257 xfs_vn_mknod( struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) argument 268 xfs_vn_create( struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode, bool flags) argument 279 xfs_vn_mkdir( struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode) argument 401 xfs_vn_symlink( struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, const char *symname) argument 444 xfs_vn_rename( struct mnt_idmap *idmap, struct inode *odir, struct dentry *odentry, struct inode *ndir, struct dentry *ndentry, unsigned int flags) argument 550 xfs_vn_getattr( struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, u32 request_mask, unsigned int query_flags) argument 633 xfs_vn_change_ok( struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr) argument 656 xfs_setattr_nonsize( struct mnt_idmap *idmap, struct dentry *dentry, struct xfs_inode *ip, struct iattr *iattr) argument 785 xfs_setattr_size( struct mnt_idmap *idmap, struct dentry *dentry, struct xfs_inode *ip, struct iattr *iattr) argument 982 xfs_vn_setattr_size( struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr) argument 999 xfs_vn_setattr( struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr) argument 1102 xfs_vn_tmpfile( struct mnt_idmap *idmap, struct inode *dir, struct file *file, umode_t mode) argument [all...] |
/linux-master/fs/gfs2/ |
H A D | acl.h | 16 int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
/linux-master/fs/smb/server/ |
H A D | vfs.h | 75 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, 103 ssize_t ksmbd_vfs_getxattr(struct mnt_idmap *idmap, 107 ssize_t ksmbd_vfs_casexattr_len(struct mnt_idmap *idmap, 110 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap, 116 int ksmbd_vfs_remove_xattr(struct mnt_idmap *idmap, 137 struct mnt_idmap *idmap, 143 int ksmbd_vfs_remove_acl_xattrs(struct mnt_idmap *idmap, 145 int ksmbd_vfs_remove_sd_xattrs(struct mnt_idmap *idmap, const struct path *path); 147 struct mnt_idmap *idmap, 152 struct mnt_idmap *idmap, [all...] |
H A D | smbacl.h | 193 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 195 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 214 static inline uid_t posix_acl_uid_translate(struct mnt_idmap *idmap, argument 220 vfsuid = make_vfsuid(idmap, &init_user_ns, pace->e_uid); 226 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, argument 232 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid);
|
/linux-master/arch/arm64/kvm/hyp/nvhe/ |
H A D | hyp.lds.S | 15 HYP_SECTION(.idmap.text)
|
/linux-master/fs/ext2/ |
H A D | xattr_trusted.c | 29 struct mnt_idmap *idmap, 28 ext2_xattr_trusted_set(const struct xattr_handler *handler, struct mnt_idmap *idmap, struct dentry *unused, struct inode *inode, const char *name, const void *value, size_t size, int flags) argument
|
/linux-master/fs/hfsplus/ |
H A D | xattr_trusted.c | 25 struct mnt_idmap *idmap, 24 hfsplus_trusted_setxattr(const struct xattr_handler *handler, struct mnt_idmap *idmap, struct dentry *unused, struct inode *inode, const char *name, const void *buffer, size_t size, int flags) argument
|
H A D | xattr_user.c | 25 struct mnt_idmap *idmap, 24 hfsplus_user_setxattr(const struct xattr_handler *handler, struct mnt_idmap *idmap, struct dentry *unused, struct inode *inode, const char *name, const void *buffer, size_t size, int flags) argument
|
/linux-master/fs/jffs2/ |
H A D | acl.h | 31 int jffs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|