| /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()
|
| /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/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, 107 static inline uid_t posix_acl_uid_translate(struct mnt_idmap *idmap, in posix_acl_uid_translate() 119 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 …]
|
| H A D | smbacl.c | 257 static int sid_to_id(struct mnt_idmap *idmap, in sid_to_id() 370 static void parse_dacl(struct mnt_idmap *idmap, in parse_dacl() 590 static void set_posix_acl_entries_dacl(struct mnt_idmap *idmap, in set_posix_acl_entries_dacl() 711 static void set_ntacl_dacl(struct mnt_idmap *idmap, in set_ntacl_dacl() 752 static void set_mode_dacl(struct mnt_idmap *idmap, in set_mode_dacl() 838 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, in parse_sec_desc() 971 int build_sec_desc(struct mnt_idmap *idmap, in build_sec_desc() 1103 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_inherit_dacl() 1357 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_check_perm_dacl() 1536 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in set_info_sec()
|
| /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/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 | 172 int kernfs_iop_permission(struct mnt_idmap *idmap, 174 int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 176 int kernfs_iop_getattr(struct mnt_idmap *idmap,
|
| /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/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/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/security/integrity/ima/ |
| H A D | ima.h | 409 int ima_get_action(struct mnt_idmap *idmap, struct inode *inode, 423 int process_buffer_measurement(struct mnt_idmap *idmap, 440 int ima_match_policy(struct mnt_idmap *idmap, struct inode *inode, 473 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise() 503 static inline int ima_must_appraise(struct mnt_idmap *idmap,
|
| H A D | ima_appraise.c | 74 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise() 626 static void ima_inode_post_setattr(struct mnt_idmap *idmap, 749 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in validate_hash_algo() 782 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in validate_hash_algo() 791 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() 807 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr()
|
| /linux/fs/overlayfs/ |
| H A D | overlayfs.h | 289 err = vfs_getxattr(mnt_idmap(path->mnt), path->dentry, in ovl_do_getxattr() 383 .mnt_idmap = ovl_upper_mnt_idmap(ofs), in ovl_do_rename() 804 int ovl_permission(struct mnt_idmap *idmap, struct inode *inode, 808 struct posix_acl *do_ovl_get_acl(struct mnt_idmap *idmap, 816 static inline struct posix_acl *ovl_get_acl(struct mnt_idmap *idmap, in ovl_get_acl() 821 int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, 916 int ovl_fileattr_set(struct mnt_idmap *idmap, 950 int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 952 int ovl_getattr(struct mnt_idmap *idmap, const struct path *path,
|
| 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/orangefs/ |
| H A D | namei.c | 18 static int orangefs_create(struct mnt_idmap *idmap, in orangefs_create() 215 static int orangefs_symlink(struct mnt_idmap *idmap, in orangefs_symlink() 300 static struct dentry *orangefs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in orangefs_mkdir() 368 static int orangefs_rename(struct mnt_idmap *idmap, in orangefs_rename()
|
| /linux/fs/hfs/ |
| H A D | dir.c | 192 static int hfs_create(struct mnt_idmap *idmap, struct inode *dir, in hfs_create() 222 static struct dentry *hfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hfs_mkdir() 290 static int hfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in hfs_rename()
|