| /linux/fs/ |
| H A D | mnt_idmapping.c | 20 struct mnt_idmap { struct 31 struct mnt_idmap nop_mnt_idmap = { argument 40 struct mnt_idmap invalid_mnt_idmap = { 80 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid() 120 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid() 150 kuid_t from_vfsuid(struct mnt_idmap *idmap, in from_vfsuid() 179 kgid_t from_vfsgid(struct mnt_idmap *idmap, in from_vfsgid() 274 static void free_mnt_idmap(struct mnt_idmap *idmap) in free_mnt_idmap() 287 struct mnt_idmap *alloc_mnt_idmap(struct user_namespace *mnt_userns) in alloc_mnt_idmap() 289 struct mnt_idmap *idmap; in alloc_mnt_idmap() [all …]
|
| H A D | posix_acl.c | 114 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl() 374 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() 604 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() 705 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() 887 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() 935 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() 1016 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() 1055 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() 1089 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() 1166 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() [all …]
|
| H A D | namei.c | 369 static int check_acl(struct mnt_idmap *idmap, in check_acl() 433 static int acl_permission_check(struct mnt_idmap *idmap, in acl_permission_check() 516 int generic_permission(struct mnt_idmap *idmap, struct inode *inode, in generic_permission() 573 static inline int do_inode_permission(struct mnt_idmap *idmap, in do_inode_permission() 623 int inode_permission(struct mnt_idmap *idmap, in inode_permission() 678 static __always_inline int lookup_inode_permission_may_exec(struct mnt_idmap *idmap, in lookup_inode_permission_may_exec() 1271 struct mnt_idmap *idmap; in may_follow_link() 1277 idmap = mnt_idmap(nd->path.mnt); in may_follow_link() 1312 static bool safe_hardlink_source(struct mnt_idmap *idmap, in safe_hardlink_source() 1355 int may_linkat(struct mnt_idmap *idmap, const struct path *link) in may_linkat() [all …]
|
| /linux/include/linux/ |
| H A D | mount.h | 19 struct mnt_idmap; 62 struct mnt_idmap *mnt_idmap; member 65 static inline struct mnt_idmap *mnt_idmap(const struct vfsmount *mnt) in mnt_idmap() function 68 return READ_ONCE(mnt->mnt_idmap); in mnt_idmap()
|
| H A D | fs.h | 1446 static inline vfsuid_t i_uid_into_vfsuid(struct mnt_idmap *idmap, in i_uid_into_vfsuid() 1463 static inline bool i_uid_needs_update(struct mnt_idmap *idmap, in i_uid_needs_update() 1481 static inline void i_uid_update(struct mnt_idmap *idmap, in i_uid_update() 1498 static inline vfsgid_t i_gid_into_vfsgid(struct mnt_idmap *idmap, in i_gid_into_vfsgid() 1515 static inline bool i_gid_needs_update(struct mnt_idmap *idmap, in i_gid_needs_update() 1533 static inline void i_gid_update(struct mnt_idmap *idmap, in i_gid_update() 1551 struct mnt_idmap *idmap) in inode_fsuid_set() 1565 struct mnt_idmap *idmap) in inode_fsgid_set() 1582 struct mnt_idmap *idmap) in fsuidgid_has_mapping() 1762 bool inode_owner_or_capable(struct mnt_idmap *idmap, [all …]
|
| H A D | lsm_hook_defs.h | 97 LSM_HOOK(void, LSM_RET_VOID, path_post_mknod, struct mnt_idmap *idmap, 125 LSM_HOOK(void, LSM_RET_VOID, inode_post_create_tmpfile, struct mnt_idmap *idmap, 143 LSM_HOOK(int, 0, inode_setattr, struct mnt_idmap *idmap, struct dentry *dentry, 145 LSM_HOOK(void, LSM_RET_VOID, inode_post_setattr, struct mnt_idmap *idmap, 149 LSM_HOOK(int, 0, inode_setxattr, struct mnt_idmap *idmap, 156 LSM_HOOK(int, 0, inode_removexattr, struct mnt_idmap *idmap, 162 LSM_HOOK(int, 0, inode_set_acl, struct mnt_idmap *idmap, 166 LSM_HOOK(int, 0, inode_get_acl, struct mnt_idmap *idmap, 168 LSM_HOOK(int, 0, inode_remove_acl, struct mnt_idmap *idmap, 170 LSM_HOOK(void, LSM_RET_VOID, inode_post_remove_acl, struct mnt_idmap *idmap, [all …]
|
| /linux/fs/smb/client/ |
| H A D | cifsfs.h | 52 int cifs_create(struct mnt_idmap *idmap, struct inode *inode, 61 int cifs_mknod(struct mnt_idmap *idmap, struct inode *inode, 63 struct dentry *cifs_mkdir(struct mnt_idmap *idmap, struct inode *inode, 66 int cifs_rename2(struct mnt_idmap *idmap, struct inode *source_dir, 75 int cifs_getattr(struct mnt_idmap *idmap, const struct path *path, 77 int cifs_setattr(struct mnt_idmap *idmap, struct dentry *direntry, 122 int cifs_symlink(struct mnt_idmap *idmap, struct inode *inode,
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 461 static int evm_xattr_change(struct mnt_idmap *idmap, in evm_xattr_change() 497 static int evm_protect_xattr(struct mnt_idmap *idmap, in evm_protect_xattr() 587 static int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setxattr() 619 static int evm_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_removexattr() 632 static int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() 651 static inline int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() 673 static int evm_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_set_acl() 725 static int evm_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_remove_acl() 878 static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, in evm_inode_post_remove_acl() 885 static int evm_attr_change(struct mnt_idmap *idmap, in evm_attr_change() [all …]
|
| /linux/fs/smb/server/ |
| H A D | smbacl.h | 84 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 86 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 105 static inline uid_t posix_acl_uid_translate(struct mnt_idmap *idmap, in posix_acl_uid_translate() 117 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate()
|
| H A D | vfs.c | 122 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, in ksmbd_vfs_query_maximal_access() 168 err = vfs_create(mnt_idmap(path.mnt), dentry, mode, NULL); in ksmbd_vfs_create() 190 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() 206 idmap = mnt_idmap(path.mnt); in ksmbd_vfs_mkdir() 223 static ssize_t ksmbd_vfs_getcasexattr(struct mnt_idmap *idmap, in ksmbd_vfs_getcasexattr() 392 struct mnt_idmap *idmap = file_mnt_idmap(fp->filp); in ksmbd_vfs_stream_write() 579 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file() 591 idmap = mnt_idmap(path->mnt); in ksmbd_vfs_remove_file() 647 err = vfs_link(oldpath.dentry, mnt_idmap(newpath.mnt), in ksmbd_vfs_link() 695 rd.mnt_idmap = mnt_idmap(old_path->mnt); in ksmbd_vfs_rename() [all …]
|
| /linux/fs/minix/ |
| H A D | namei.c | 36 static int minix_mknod(struct mnt_idmap *idmap, struct inode *dir, in minix_mknod() 53 static int minix_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in minix_tmpfile() 66 static int minix_create(struct mnt_idmap *idmap, struct inode *dir, in minix_create() 72 static int minix_symlink(struct mnt_idmap *idmap, struct inode *dir, in minix_symlink() 107 static struct dentry *minix_mkdir(struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir() 190 static int minix_rename(struct mnt_idmap *idmap, in minix_rename()
|
| /linux/fs/coda/ |
| H A D | coda_linux.h | 49 int coda_permission(struct mnt_idmap *idmap, struct inode *inode, 52 int coda_getattr(struct mnt_idmap *, const struct path *, struct kstat *, 54 int coda_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
|
| H A D | pioctl.c | 27 static int coda_ioctl_permission(struct mnt_idmap *idmap, 44 static int coda_ioctl_permission(struct mnt_idmap *idmap, in coda_ioctl_permission()
|
| /linux/fs/ocfs2/ |
| H A D | file.h | 53 int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 55 int ocfs2_getattr(struct mnt_idmap *idmap, const struct path *path, 57 int ocfs2_permission(struct mnt_idmap *idmap,
|
| /linux/fs/ramfs/ |
| H A D | inode.c | 98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod() 121 static struct dentry *ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir() 130 static int ramfs_create(struct mnt_idmap *idmap, struct inode *dir, in ramfs_create() 136 static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink() 166 static int ramfs_tmpfile(struct mnt_idmap *idmap, in ramfs_tmpfile()
|
| /linux/fs/ecryptfs/ |
| H A D | inode.c | 269 ecryptfs_create(struct mnt_idmap *idmap, in ecryptfs_create() 467 static int ecryptfs_symlink(struct mnt_idmap *idmap, in ecryptfs_symlink() 508 static struct dentry *ecryptfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mkdir() 567 ecryptfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mknod() 595 ecryptfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ecryptfs_rename() 618 rd.mnt_idmap = &nop_mnt_idmap; in ecryptfs_rename() 866 ecryptfs_permission(struct mnt_idmap *idmap, struct inode *inode, in ecryptfs_permission() 886 static int ecryptfs_setattr(struct mnt_idmap *idmap, in ecryptfs_setattr() 971 static int ecryptfs_getattr_link(struct mnt_idmap *idmap, in ecryptfs_getattr_link() 997 static int ecryptfs_getattr(struct mnt_idmap *idmap, in ecryptfs_getattr() [all …]
|
| /linux/fs/btrfs/ |
| H A D | acl.h | 14 struct mnt_idmap; 18 int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
| H A D | ioctl.h | 10 struct mnt_idmap; 20 int btrfs_fileattr_set(struct mnt_idmap *idmap,
|
| /linux/fs/kernfs/ |
| H A D | kernfs-internal.h | 173 int kernfs_iop_permission(struct mnt_idmap *idmap, 175 int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 177 int kernfs_iop_getattr(struct mnt_idmap *idmap,
|
| H A D | inode.c | 111 int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in kernfs_iop_setattr() 185 int kernfs_iop_getattr(struct mnt_idmap *idmap, in kernfs_iop_getattr() 276 int kernfs_iop_permission(struct mnt_idmap *idmap, in kernfs_iop_permission() 336 struct mnt_idmap *idmap, in kernfs_vfs_xattr_set() 411 struct mnt_idmap *idmap, in kernfs_vfs_user_xattr_set()
|
| /linux/fs/efivarfs/ |
| H A D | inode.c | 77 static int efivarfs_create(struct mnt_idmap *idmap, struct inode *dir, in efivarfs_create() 153 efivarfs_fileattr_set(struct mnt_idmap *idmap, in efivarfs_fileattr_set() 173 static int efivarfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in efivarfs_setattr()
|
| /linux/fs/jfs/ |
| H A D | jfs_inode.h | 13 extern int jfs_fileattr_set(struct mnt_idmap *idmap, 31 extern int jfs_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
|
| /linux/fs/9p/ |
| H A D | acl.h | 13 struct posix_acl *v9fs_iop_get_acl(struct mnt_idmap *idmap, 15 int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
| /linux/fs/fuse/ |
| H A D | dir.c | 742 static int get_create_supp_group(struct mnt_idmap *idmap, in get_create_supp_group() 773 static int get_create_ext(struct mnt_idmap *idmap, in get_create_ext() 811 static int fuse_create_open(struct mnt_idmap *idmap, struct inode *dir, in fuse_create_open() 926 static int fuse_mknod(struct mnt_idmap *, struct inode *, struct dentry *, 933 struct mnt_idmap *idmap = file_mnt_idmap(file); in fuse_atomic_open() 972 static struct dentry *create_new_entry(struct mnt_idmap *idmap, struct fuse_mount *fm, in create_new_entry() 1045 static int create_new_nondir(struct mnt_idmap *idmap, struct fuse_mount *fm, in create_new_nondir() 1061 static int fuse_mknod(struct mnt_idmap *idmap, struct inode *dir, in fuse_mknod() 1084 static int fuse_create(struct mnt_idmap *idmap, struct inode *dir, in fuse_create() 1090 static int fuse_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in fuse_tmpfile() [all …]
|
| /linux/security/integrity/ima/ |
| H A D | ima.h | 382 int ima_get_action(struct mnt_idmap *idmap, struct inode *inode, 396 int process_buffer_measurement(struct mnt_idmap *idmap, 413 int ima_match_policy(struct mnt_idmap *idmap, struct inode *inode, 446 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, 476 static inline int ima_must_appraise(struct mnt_idmap *idmap, in ima_update_xattr()
|