| /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 | attr.c | 33 int setattr_should_drop_sgid(struct mnt_idmap *idmap, in setattr_should_drop_sgid() 63 int setattr_should_drop_suidgid(struct mnt_idmap *idmap, in setattr_should_drop_suidgid() 94 static bool chown_ok(struct mnt_idmap *idmap, in chown_ok() 121 static bool chgrp_ok(struct mnt_idmap *idmap, in chgrp_ok() 161 int setattr_prepare(struct mnt_idmap *idmap, struct dentry *dentry, in setattr_prepare() 342 void setattr_copy(struct mnt_idmap *idmap, struct inode *inode, in setattr_copy() 372 int may_setattr(struct mnt_idmap *idmap, struct inode *inode, in may_setattr() 427 int notify_change(struct mnt_idmap *idmap, struct dentry *dentry, in notify_change()
|
| H A D | posix_acl.c | 121 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl() 381 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() 611 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() 712 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() 892 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() 940 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() 1021 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() 1060 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() 1094 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() 1171 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() [all …]
|
| H A D | namei.c | 374 static int check_acl(struct mnt_idmap *idmap, in check_acl() 438 static int acl_permission_check(struct mnt_idmap *idmap, in acl_permission_check() 521 int generic_permission(struct mnt_idmap *idmap, struct inode *inode, in generic_permission() 578 static inline int do_inode_permission(struct mnt_idmap *idmap, in do_inode_permission() 628 int inode_permission(struct mnt_idmap *idmap, in inode_permission() 683 static __always_inline int lookup_inode_permission_may_exec(struct mnt_idmap *idmap, in lookup_inode_permission_may_exec() 1276 struct mnt_idmap *idmap; in may_follow_link() 1282 idmap = mnt_idmap(nd->path.mnt); in may_follow_link() 1317 static bool safe_hardlink_source(struct mnt_idmap *idmap, in safe_hardlink_source() 1360 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 | capability.h | 42 struct mnt_idmap; 189 struct mnt_idmap *idmap, 191 bool capable_wrt_inode_uidgid(struct mnt_idmap *idmap, 218 int get_vfs_caps_from_disk(struct mnt_idmap *idmap, 222 int cap_convert_nscap(struct mnt_idmap *idmap, struct dentry *dentry,
|
| /linux/fs/smb/client/ |
| H A D | cifsfs.h | 56 int cifs_create(struct mnt_idmap *idmap, struct inode *dir, 60 int cifs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, 67 int cifs_mknod(struct mnt_idmap *idmap, struct inode *inode, 69 struct dentry *cifs_mkdir(struct mnt_idmap *idmap, struct inode *inode, 72 int cifs_rename2(struct mnt_idmap *idmap, struct inode *source_dir, 81 int cifs_getattr(struct mnt_idmap *idmap, const struct path *path, 83 int cifs_setattr(struct mnt_idmap *idmap, struct dentry *direntry, 132 int cifs_symlink(struct mnt_idmap *idmap, struct inode *inode,
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 484 static int evm_xattr_change(struct mnt_idmap *idmap, 520 static int evm_protect_xattr(struct mnt_idmap *idmap, in evm_protect_xattr() 610 static int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, 642 static int evm_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_set_acl_change() 655 static int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() 674 static inline int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl() 696 static int evm_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_set_acl() 748 static int evm_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, 929 static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, in evm_inode_setattr() 936 static int evm_attr_change(struct mnt_idmap *idma in evm_inode_setattr() [all...] |
| /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/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/smb/server/ |
| H A D | vfs.c | 118 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, in ksmbd_vfs_query_maximal_access() 164 err = vfs_create(mnt_idmap(path.mnt), dentry, mode, NULL); in ksmbd_vfs_create() 186 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() 202 idmap = mnt_idmap(path.mnt); in ksmbd_vfs_mkdir() 219 static ssize_t ksmbd_vfs_getcasexattr(struct mnt_idmap *idmap, in ksmbd_vfs_getcasexattr() 389 struct mnt_idmap *idmap = file_mnt_idmap(fp->filp); in ksmbd_vfs_stream_write() 580 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file() 592 idmap = mnt_idmap(path->mnt); in ksmbd_vfs_remove_file() 649 err = vfs_link(oldpath.dentry, mnt_idmap(newpath.mnt), in ksmbd_vfs_link() 715 rd.mnt_idmap = mnt_idmap(old_path->mnt); in ksmbd_vfs_rename() [all …]
|
| /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/overlayfs/ |
| H A D | xattrs.c | 48 err = vfs_getxattr(mnt_idmap(realpath.mnt), realdentry, name, NULL, 0); in ovl_xattr_set() 89 return vfs_getxattr(mnt_idmap(realpath.mnt), realpath.dentry, name, value, size); in ovl_xattr_get() 193 struct mnt_idmap *idmap, in ovl_own_xattr_set() 220 struct mnt_idmap *idmap, in ovl_other_xattr_set()
|
| H A D | inode.c | 21 int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in ovl_setattr() 171 int ovl_getattr(struct mnt_idmap *idmap, const struct path *path, in ovl_getattr() 306 int ovl_permission(struct mnt_idmap *idmap, in ovl_permission() 337 return inode_permission(mnt_idmap(realpath.mnt), realinode, mask); in ovl_permission() 358 struct mnt_idmap *idmap, in ovl_idmap_posix_acl() 409 struct mnt_idmap *idmap; in ovl_get_acl_path() 412 idmap = mnt_idmap(path->mnt); in ovl_get_acl_path() 450 struct posix_acl *do_ovl_get_acl(struct mnt_idmap *idmap, in do_ovl_get_acl() 505 real_acl = vfs_get_acl(mnt_idmap(realpath.mnt), realdentry, acl_name); in ovl_set_or_remove_acl() 539 int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ovl_set_acl() [all …]
|
| H A D | ovl_entry.h | 108 static inline struct mnt_idmap *ovl_upper_mnt_idmap(struct ovl_fs *ofs) in ovl_upper_mnt_idmap() 110 return mnt_idmap(ovl_upper_mnt(ofs)); in ovl_upper_mnt_idmap()
|
| /linux/fs/xfs/ |
| H A D | xfs_iops.c | 172 struct mnt_idmap *idmap, in xfs_generic_create() 282 struct mnt_idmap *idmap, in xfs_vn_mknod() 293 struct mnt_idmap *idmap, in xfs_vn_create() 303 struct mnt_idmap *idmap, in xfs_vn_mkdir() 428 struct mnt_idmap *idmap, in xfs_vn_symlink() 469 struct mnt_idmap *idmap, in xfs_vn_rename() 682 struct mnt_idmap *idmap, in xfs_vn_getattr() 757 struct mnt_idmap *idmap, in xfs_vn_change_ok() 780 struct mnt_idmap *idmap, in xfs_setattr_nonsize() 906 struct mnt_idmap *idmap, in xfs_vn_setattr_size() [all …]
|
| H A D | xfs_symlink.h | 10 int xfs_symlink(struct mnt_idmap *idmap, struct xfs_inode *dp,
|
| /linux/security/integrity/ima/ |
| H A D | ima.h | 426 int ima_get_action(struct mnt_idmap *idmap, struct inode *inode, 440 int process_buffer_measurement(struct mnt_idmap *idmap, 457 int ima_match_policy(struct mnt_idmap *idmap, struct inode *inode, in ima_appraise_measurement() 492 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_read_xattr() 522 static inline int ima_must_appraise(struct mnt_idmap *idmap, in ima_collect_modsig()
|
| H A D | ima_appraise.c | 74 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise() 637 static void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_inode_post_setattr() 760 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() 793 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_set_acl() 802 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_removexattr() 818 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_remove_acl()
|
| /linux/fs/ntfs3/ |
| H A D | namei.c | 114 static int ntfs_create(struct mnt_idmap *idmap, struct inode *dir, in ntfs_create() 124 static int ntfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mknod() 212 static int ntfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ntfs_symlink() 231 static struct dentry *ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mkdir() 265 static int ntfs_rename(struct mnt_idmap *idmap, struct inode *dir, in ntfs_rename()
|
| /linux/fs/proc/ |
| H A D | fd.h | 13 extern int proc_fd_permission(struct mnt_idmap *idmap,
|