/linux-6.3-rc2/fs/nfs/ |
A D | nfs4idmap.c | 65 struct idmap *idmap; member 68 struct idmap { struct 69 struct rpc_pipe_dir_object idmap_pdo; argument 70 struct rpc_pipe *idmap_pipe; argument 72 struct mutex idmap_mutex; argument 76 static struct user_namespace *idmap_userns(const struct idmap *idmap) in idmap_userns() 426 struct idmap *idmap = pdo->pdo_data; in nfs_idmap_pipe_destroy() local 438 struct idmap *idmap = pdo->pdo_data; in nfs_idmap_pipe_create() local 457 struct idmap *idmap; in nfs_idmap_new() local 586 struct idmap *idmap = aux; in nfs_idmap_legacy_upcall() local [all …]
|
/linux-6.3-rc2/fs/ |
A D | mnt_idmapping.c | 35 bool check_fsmapping(const struct mnt_idmap *idmap, in check_fsmapping() 96 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid() 135 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid() 164 kuid_t from_vfsuid(struct mnt_idmap *idmap, in from_vfsuid() 192 kgid_t from_vfsgid(struct mnt_idmap *idmap, in from_vfsgid() 233 struct mnt_idmap *idmap; in alloc_mnt_idmap() local 252 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap) in mnt_idmap_get() 267 void mnt_idmap_put(struct mnt_idmap *idmap) in mnt_idmap_put()
|
A D | attr.c | 37 int setattr_should_drop_sgid(struct mnt_idmap *idmap, in setattr_should_drop_sgid() 66 int setattr_should_drop_suidgid(struct mnt_idmap *idmap, in setattr_should_drop_suidgid() 97 static bool chown_ok(struct mnt_idmap *idmap, in chown_ok() 124 static bool chgrp_ok(struct mnt_idmap *idmap, in chgrp_ok() 164 int setattr_prepare(struct mnt_idmap *idmap, struct dentry *dentry, in setattr_prepare() 302 void setattr_copy(struct mnt_idmap *idmap, struct inode *inode, in setattr_copy() 325 int may_setattr(struct mnt_idmap *idmap, struct inode *inode, in may_setattr() 380 int notify_change(struct mnt_idmap *idmap, struct dentry *dentry, in notify_change()
|
A D | bad_inode.c | 30 static int bad_inode_create(struct mnt_idmap *idmap, in bad_inode_create() 54 static int bad_inode_symlink(struct mnt_idmap *idmap, in bad_inode_symlink() 61 static int bad_inode_mkdir(struct mnt_idmap *idmap, struct inode *dir, in bad_inode_mkdir() 72 static int bad_inode_mknod(struct mnt_idmap *idmap, struct inode *dir, in bad_inode_mknod() 78 static int bad_inode_rename2(struct mnt_idmap *idmap, in bad_inode_rename2() 92 static int bad_inode_permission(struct mnt_idmap *idmap, in bad_inode_permission() 98 static int bad_inode_getattr(struct mnt_idmap *idmap, in bad_inode_getattr() 105 static int bad_inode_setattr(struct mnt_idmap *idmap, in bad_inode_setattr() 149 static int bad_inode_tmpfile(struct mnt_idmap *idmap, in bad_inode_tmpfile() 156 static int bad_inode_set_acl(struct mnt_idmap *idmap, in bad_inode_set_acl()
|
A D | posix_acl.c | 115 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl() 376 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() 606 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() 707 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode() 888 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() 936 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() 980 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() 1019 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() 1053 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() 1132 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() [all …]
|
A D | xattr.c | 98 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode) in may_write_xattr() 114 xattr_permission(struct mnt_idmap *idmap, struct inode *inode, in xattr_permission() 187 __vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr() 225 int __vfs_setxattr_noperm(struct mnt_idmap *idmap, in __vfs_setxattr_noperm() 307 vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_setxattr() 431 vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr() 514 __vfs_removexattr_locked(struct mnt_idmap *idmap, in __vfs_removexattr_locked() 614 setxattr(struct mnt_idmap *idmap, struct dentry *d, in setxattr() 701 do_getxattr(struct mnt_idmap *idmap, struct dentry *d, in do_getxattr() 732 getxattr(struct mnt_idmap *idmap, struct dentry *d, in getxattr() [all …]
|
A D | namei.c | 291 static int check_acl(struct mnt_idmap *idmap, in check_acl() 501 int inode_permission(struct mnt_idmap *idmap, in inode_permission() 1098 struct mnt_idmap *idmap; in may_follow_link() local 1708 static inline int may_lookup(struct mnt_idmap *idmap, in may_lookup() 2257 struct mnt_idmap *idmap; in link_path_walk() local 3234 static int may_o_create(struct mnt_idmap *idmap, in may_o_create() 3325 struct mnt_idmap *idmap; in lookup_open() local 3519 struct mnt_idmap *idmap; in do_open() local 3589 static int vfs_tmpfile(struct mnt_idmap *idmap, in vfs_tmpfile() 3943 struct mnt_idmap *idmap; in do_mknodat() local [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | evm.h | 38 static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, in evm_inode_post_remove_acl() 47 static inline int evm_inode_remove_acl(struct mnt_idmap *idmap, in evm_inode_remove_acl() 93 static inline int evm_inode_setattr(struct mnt_idmap *idmap, in evm_inode_setattr() 104 static inline int evm_inode_setxattr(struct mnt_idmap *idmap, in evm_inode_setxattr() 119 static inline int evm_inode_removexattr(struct mnt_idmap *idmap, in evm_inode_removexattr() 132 static inline void evm_inode_post_remove_acl(struct mnt_idmap *idmap, in evm_inode_post_remove_acl() 139 static inline int evm_inode_set_acl(struct mnt_idmap *idmap, in evm_inode_set_acl() 146 static inline int evm_inode_remove_acl(struct mnt_idmap *idmap, in evm_inode_remove_acl()
|
A D | ima.h | 70 static inline void ima_post_create_tmpfile(struct mnt_idmap *idmap, in ima_post_create_tmpfile() 116 static inline void ima_post_path_mknod(struct mnt_idmap *idmap, in ima_post_path_mknod() 195 static inline int ima_inode_remove_acl(struct mnt_idmap *idmap, in ima_inode_remove_acl() 208 static inline void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_inode_post_setattr() 222 static inline int ima_inode_set_acl(struct mnt_idmap *idmap, in ima_inode_set_acl() 236 static inline int ima_inode_remove_acl(struct mnt_idmap *idmap, in ima_inode_remove_acl()
|
A D | posix_acl.h | 110 static inline int posix_acl_chmod(struct mnt_idmap *idmap, in posix_acl_chmod() 137 static inline int vfs_set_acl(struct mnt_idmap *idmap, in vfs_set_acl() 144 static inline struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl() 151 static inline int vfs_remove_acl(struct mnt_idmap *idmap, in vfs_remove_acl()
|
A D | mnt_idmapping.h | 142 static inline bool vfsuid_has_fsmapping(struct mnt_idmap *idmap, in vfsuid_has_fsmapping() 180 static inline bool vfsgid_has_fsmapping(struct mnt_idmap *idmap, in vfsgid_has_fsmapping() 219 static inline kuid_t mapped_fsuid(struct mnt_idmap *idmap, in mapped_fsuid() 238 static inline kgid_t mapped_fsgid(struct mnt_idmap *idmap, in mapped_fsgid()
|
/linux-6.3-rc2/fs/ksmbd/ |
A D | vfs.c | 100 int ksmbd_vfs_may_delete(struct mnt_idmap *idmap, in ksmbd_vfs_may_delete() 203 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() local 413 struct mnt_idmap *idmap = file_mnt_idmap(fp->filp); in ksmbd_vfs_stream_write() local 587 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file() local 776 struct mnt_idmap *idmap; in ksmbd_vfs_fp_rename() local 926 ssize_t ksmbd_vfs_getxattr(struct mnt_idmap *idmap, in ksmbd_vfs_getxattr() 962 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap, in ksmbd_vfs_setxattr() 1084 int ksmbd_vfs_unlink(struct mnt_idmap *idmap, in ksmbd_vfs_unlink() 1432 struct mnt_idmap *idmap, in ksmbd_vfs_set_sd_xattr() 1506 struct mnt_idmap *idmap, in ksmbd_vfs_get_sd_xattr() [all …]
|
A D | smbacl.c | 257 static int sid_to_id(struct mnt_idmap *idmap, in sid_to_id() 365 static void parse_dacl(struct mnt_idmap *idmap, in parse_dacl() 578 static void set_posix_acl_entries_dacl(struct mnt_idmap *idmap, in set_posix_acl_entries_dacl() 692 static void set_ntacl_dacl(struct mnt_idmap *idmap, in set_ntacl_dacl() 732 static void set_mode_dacl(struct mnt_idmap *idmap, in set_mode_dacl() 811 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, in parse_sec_desc() 892 int build_sec_desc(struct mnt_idmap *idmap, in build_sec_desc() 1005 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_inherit_dacl() local 1193 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_check_perm_dacl() local 1363 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in set_info_sec() local
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_iops.c | 165 struct mnt_idmap *idmap, in xfs_generic_create() 258 struct mnt_idmap *idmap, in xfs_vn_mknod() 269 struct mnt_idmap *idmap, in xfs_vn_create() 280 struct mnt_idmap *idmap, in xfs_vn_mkdir() 402 struct mnt_idmap *idmap, in xfs_vn_symlink() 445 struct mnt_idmap *idmap, in xfs_vn_rename() 551 struct mnt_idmap *idmap, in xfs_vn_getattr() 629 struct mnt_idmap *idmap, in xfs_vn_change_ok() 652 struct mnt_idmap *idmap, in xfs_setattr_nonsize() 781 struct mnt_idmap *idmap, in xfs_setattr_size() [all …]
|
/linux-6.3-rc2/fs/minix/ |
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 int minix_mkdir(struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir() 177 static int minix_rename(struct mnt_idmap *idmap, in minix_rename()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | namei.c | 205 static struct inode *f2fs_new_inode(struct mnt_idmap *idmap, in f2fs_new_inode() 336 static int f2fs_create(struct mnt_idmap *idmap, struct inode *dir, in f2fs_create() 662 static int f2fs_symlink(struct mnt_idmap *idmap, struct inode *dir, in f2fs_symlink() 742 static int f2fs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mkdir() 797 static int f2fs_mknod(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mknod() 840 static int __f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in __f2fs_tmpfile() 910 static int f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_tmpfile() 926 static int f2fs_create_whiteout(struct mnt_idmap *idmap, in f2fs_create_whiteout() 933 int f2fs_get_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_get_tmpfile() 1295 static int f2fs_rename2(struct mnt_idmap *idmap, in f2fs_rename2() [all …]
|
/linux-6.3-rc2/security/integrity/evm/ |
A D | evm_main.c | 449 static int evm_xattr_change(struct mnt_idmap *idmap, in evm_xattr_change() 485 static int evm_protect_xattr(struct mnt_idmap *idmap, in evm_protect_xattr() 568 int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setxattr() 600 int evm_inode_removexattr(struct mnt_idmap *idmap, in evm_inode_removexattr() 613 static int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() 632 static inline int evm_inode_set_acl_change(struct mnt_idmap *idmap, in evm_inode_set_acl_change() 652 int evm_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_set_acl() 782 static int evm_attr_change(struct mnt_idmap *idmap, in evm_attr_change() 803 int evm_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setattr()
|
/linux-6.3-rc2/fs/ext2/ |
A D | namei.c | 102 static int ext2_create (struct mnt_idmap * idmap, in ext2_create() 122 static int ext2_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in ext2_tmpfile() 136 static int ext2_mknod (struct mnt_idmap * idmap, struct inode * dir, in ext2_mknod() 157 static int ext2_symlink (struct mnt_idmap * idmap, struct inode * dir, in ext2_symlink() 228 static int ext2_mkdir(struct mnt_idmap * idmap, in ext2_mkdir() 318 static int ext2_rename (struct mnt_idmap * idmap, in ext2_rename()
|
/linux-6.3-rc2/fs/sysv/ |
A D | namei.c | 44 static int sysv_mknod(struct mnt_idmap *idmap, struct inode *dir, in sysv_mknod() 64 static int sysv_create(struct mnt_idmap *idmap, struct inode *dir, in sysv_create() 70 static int sysv_symlink(struct mnt_idmap *idmap, struct inode *dir, in sysv_symlink() 113 static int sysv_mkdir(struct mnt_idmap *idmap, struct inode *dir, in sysv_mkdir() 191 static int sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, in sysv_rename()
|
/linux-6.3-rc2/fs/ecryptfs/ |
A D | inode.c | 256 ecryptfs_create(struct mnt_idmap *idmap, in ecryptfs_create() 459 static int ecryptfs_symlink(struct mnt_idmap *idmap, in ecryptfs_symlink() 551 ecryptfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mknod() 577 ecryptfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ecryptfs_rename() 867 ecryptfs_permission(struct mnt_idmap *idmap, struct inode *inode, in ecryptfs_permission() 887 static int ecryptfs_setattr(struct mnt_idmap *idmap, in ecryptfs_setattr() 975 static int ecryptfs_getattr_link(struct mnt_idmap *idmap, in ecryptfs_getattr_link() 1001 static int ecryptfs_getattr(struct mnt_idmap *idmap, in ecryptfs_getattr() 1113 static int ecryptfs_fileattr_set(struct mnt_idmap *idmap, in ecryptfs_fileattr_set() 1132 static int ecryptfs_set_acl(struct mnt_idmap *idmap, in ecryptfs_set_acl() [all …]
|
/linux-6.3-rc2/fs/ufs/ |
A D | namei.c | 72 static int ufs_create (struct mnt_idmap * idmap, in ufs_create() 89 static int ufs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ufs_mknod() 109 static int ufs_symlink (struct mnt_idmap * idmap, struct inode * dir, in ufs_symlink() 169 static int ufs_mkdir(struct mnt_idmap * idmap, struct inode * dir, in ufs_mkdir() 246 static int ufs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ufs_rename()
|
/linux-6.3-rc2/fs/ramfs/ |
A D | inode.c | 98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod() 113 static int ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir() 122 static int ramfs_create(struct mnt_idmap *idmap, struct inode *dir, in ramfs_create() 128 static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink() 148 static int ramfs_tmpfile(struct mnt_idmap *idmap, in ramfs_tmpfile()
|
/linux-6.3-rc2/fs/orangefs/ |
A D | namei.c | 18 static int orangefs_create(struct mnt_idmap *idmap, in orangefs_create() 219 static int orangefs_symlink(struct mnt_idmap *idmap, in orangefs_symlink() 308 static int orangefs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in orangefs_mkdir() 378 static int orangefs_rename(struct mnt_idmap *idmap, in orangefs_rename()
|
/linux-6.3-rc2/fs/hfsplus/ |
A D | dir.c | 437 static int hfsplus_symlink(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_symlink() 479 static int hfsplus_mknod(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_mknod() 520 static int hfsplus_create(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_create() 526 static int hfsplus_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_mkdir() 532 static int hfsplus_rename(struct mnt_idmap *idmap, in hfsplus_rename()
|
/linux-6.3-rc2/fs/fuse/ |
A D | acl.c | 15 struct mnt_idmap *idmap, in __fuse_get_acl() 68 struct posix_acl *fuse_get_acl(struct mnt_idmap *idmap, in fuse_get_acl() 97 int fuse_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in fuse_set_acl()
|