| /linux/include/linux/ |
| H A D | mnt_idmapping.h | 8 struct mnt_idmap; 11 extern const struct mnt_idmap nop_mnt_idmap; 12 extern const struct mnt_idmap invalid_mnt_idmap; 28 static inline bool is_valid_mnt_idmap(const struct mnt_idmap *idmap) in is_valid_mnt_idmap() 124 const struct mnt_idmap *mnt_idmap_get(const struct mnt_idmap *idmap); 125 void mnt_idmap_put(const struct mnt_idmap *idmap); 127 vfsuid_t make_vfsuid(const struct mnt_idmap *idmap, 130 vfsgid_t make_vfsgid(const struct mnt_idmap *idmap, 133 kuid_t from_vfsuid(const struct mnt_idmap *idmap, 136 kgid_t from_vfsgid(const struct mnt_idmap *idmap, [all …]
|
| H A D | posix_acl.h | 77 int set_posix_acl(const struct mnt_idmap *, struct dentry *, int, 84 int posix_acl_chmod(const struct mnt_idmap *, struct dentry *, umode_t); 87 int posix_acl_update_mode(const struct mnt_idmap *, struct inode *, umode_t *, 90 int simple_set_acl(const struct mnt_idmap *, struct dentry *, 99 int posix_acl_permission(const struct mnt_idmap *, struct inode *, 108 int vfs_set_acl(const struct mnt_idmap *idmap, struct dentry *dentry, 110 struct posix_acl *vfs_get_acl(const struct mnt_idmap *idmap, 112 int vfs_remove_acl(const struct mnt_idmap *idmap, struct dentry *dentry, 117 static inline int posix_acl_chmod(const struct mnt_idmap *idmap, in posix_acl_chmod() 144 static inline int vfs_set_acl(const struct mnt_idmap *idmap, in vfs_set_acl() [all …]
|
| H A D | xattr.h | 50 const struct mnt_idmap *idmap, struct dentry *dentry, 80 ssize_t vfs_getxattr(const struct mnt_idmap *, struct dentry *, const char *, 83 int __vfs_setxattr(const struct mnt_idmap *, struct dentry *, struct inode *, 85 int __vfs_setxattr_noperm(const struct mnt_idmap *, struct dentry *, 87 int __vfs_setxattr_locked(const struct mnt_idmap *, struct dentry *, 90 int vfs_setxattr(const struct mnt_idmap *, struct dentry *, const char *, 92 int __vfs_removexattr(const struct mnt_idmap *, struct dentry *, const char *); 93 int __vfs_removexattr_locked(const struct mnt_idmap *, struct dentry *, 95 int vfs_removexattr(const struct mnt_idmap *, struct dentry *, const char *); 98 int vfs_getxattr_alloc(const struct mnt_idmap *idmap,
|
| H A D | namei.h | 74 struct dentry *lookup_one(const struct mnt_idmap *, struct qstr *, struct dentry *); 75 struct dentry *lookup_one_unlocked(const struct mnt_idmap *idmap, 77 struct dentry *lookup_one_positive_unlocked(const struct mnt_idmap *idmap, 80 struct dentry *lookup_one_positive_killable(const struct mnt_idmap *idmap, 84 struct dentry *start_creating(const struct mnt_idmap *idmap, struct dentry *parent, 86 struct dentry *start_removing(const struct mnt_idmap *idmap, struct dentry *parent, 88 struct dentry *start_creating_killable(const struct mnt_idmap *idmap, 91 struct dentry *start_removing_killable(const struct mnt_idmap *idmap,
|
| H A D | mount.h | 19 struct mnt_idmap; 62 const struct mnt_idmap *mnt_idmap; member 65 static inline const 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 | 1442 static inline vfsuid_t i_uid_into_vfsuid(const struct mnt_idmap *idmap, in i_uid_into_vfsuid() 1459 static inline bool i_uid_needs_update(const struct mnt_idmap *idmap, in i_uid_needs_update() 1477 static inline void i_uid_update(const struct mnt_idmap *idmap, in i_uid_update() 1494 static inline vfsgid_t i_gid_into_vfsgid(const struct mnt_idmap *idmap, in i_gid_into_vfsgid() 1511 static inline bool i_gid_needs_update(const struct mnt_idmap *idmap, in i_gid_needs_update() 1529 static inline void i_gid_update(const struct mnt_idmap *idmap, in i_gid_update() 1547 const struct mnt_idmap *idmap) in inode_fsuid_set() 1561 const struct mnt_idmap *idmap) in inode_fsgid_set() 1578 const struct mnt_idmap *idmap) in fsuidgid_has_mapping() 1758 bool inode_owner_or_capable(const struct mnt_idmap *idmap, [all …]
|
| H A D | capability.h | 42 struct mnt_idmap; 189 const struct mnt_idmap *idmap, 191 bool capable_wrt_inode_uidgid(const struct mnt_idmap *idmap, 218 int get_vfs_caps_from_disk(const struct mnt_idmap *idmap, 222 int cap_convert_nscap(const struct mnt_idmap *idmap, struct dentry *dentry,
|
| H A D | security.h | 190 int cap_inode_removexattr(const struct mnt_idmap *idmap, 193 int cap_inode_killpriv(const struct mnt_idmap *idmap, struct dentry *dentry); 194 int cap_inode_getsecurity(const struct mnt_idmap *idmap, 409 int security_inode_create(const struct mnt_idmap *idmap, struct inode *dir, 411 void security_inode_post_create_tmpfile(const struct mnt_idmap *idmap, 413 int security_inode_link(const struct mnt_idmap *idmap, struct dentry *old_dentry, 416 int security_inode_symlink(const struct mnt_idmap *idmap, struct inode *dir, 418 int security_inode_mkdir(const struct mnt_idmap *idmap, struct inode *dir, 421 int security_inode_mknod(const struct mnt_idmap *idmap, struct inode *dir, 429 int security_inode_permission(const struct mnt_idmap *idma [all...] |
| /linux/fs/ |
| H A D | mnt_idmapping.c | 20 struct mnt_idmap { struct 31 const struct mnt_idmap nop_mnt_idmap = { argument 40 const struct mnt_idmap invalid_mnt_idmap = { 80 vfsuid_t make_vfsuid(const struct mnt_idmap *idmap, in make_vfsuid() 120 vfsgid_t make_vfsgid(const struct mnt_idmap *idmap, in make_vfsgid() 150 kuid_t from_vfsuid(const struct mnt_idmap *idmap, in from_vfsuid() 179 kgid_t from_vfsgid(const 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 | internal.h | 19 struct mnt_idmap; 58 int may_linkat(const struct mnt_idmap *idmap, const struct path *link); 66 int vfs_tmpfile(const struct mnt_idmap *idmap, 215 int dentry_needs_remove_privs(const struct mnt_idmap *, struct dentry *dentry); 216 bool in_group_or_capable(const struct mnt_idmap *idmap, 304 int may_write_xattr(const struct mnt_idmap *idmap, struct inode *inode); 307 int do_set_acl(const struct mnt_idmap *idmap, struct dentry *dentry, 309 ssize_t do_get_acl(const struct mnt_idmap *idmap, struct dentry *dentry, 312 static inline int do_set_acl(const struct mnt_idmap *idmap, in do_set_acl() 318 static inline ssize_t do_get_acl(const struct mnt_idmap *idmap, in do_get_acl() [all …]
|
| H A D | bad_inode.c | 30 static int bad_inode_create(const struct mnt_idmap *idmap, in bad_inode_create() 54 static int bad_inode_symlink(const struct mnt_idmap *idmap, in bad_inode_symlink() 61 static struct dentry *bad_inode_mkdir(const struct mnt_idmap *idmap, struct inode *dir, in bad_inode_mkdir() 72 static int bad_inode_mknod(const struct mnt_idmap *idmap, struct inode *dir, in bad_inode_mknod() 78 static int bad_inode_rename2(const struct mnt_idmap *idmap, in bad_inode_rename2() 92 static int bad_inode_permission(const struct mnt_idmap *idmap, in bad_inode_permission() 98 static int bad_inode_getattr(const struct mnt_idmap *idmap, in bad_inode_getattr() 105 static int bad_inode_setattr(const struct mnt_idmap *idmap, in bad_inode_setattr() 149 static int bad_inode_tmpfile(const struct mnt_idmap *idmap, in bad_inode_tmpfile() 156 static int bad_inode_set_acl(const struct mnt_idmap *idmap, in bad_inode_set_acl()
|
| H A D | attr.c | 33 int setattr_should_drop_sgid(const struct mnt_idmap *idmap, in setattr_should_drop_sgid() 63 int setattr_should_drop_suidgid(const struct mnt_idmap *idmap, in setattr_should_drop_suidgid() 94 static bool chown_ok(const struct mnt_idmap *idmap, in chown_ok() 121 static bool chgrp_ok(const struct mnt_idmap *idmap, in chgrp_ok() 161 int setattr_prepare(const struct mnt_idmap *idmap, struct dentry *dentry, in setattr_prepare() 342 void setattr_copy(const struct mnt_idmap *idmap, struct inode *inode, in setattr_copy() 372 int may_setattr(const struct mnt_idmap *idmap, struct inode *inode, in may_setattr() 427 int notify_change(const struct mnt_idmap *idmap, struct dentry *dentry, in notify_change()
|
| H A D | posix_acl.c | 121 static struct posix_acl *__get_acl(const struct mnt_idmap *idmap, in __get_acl() 381 posix_acl_permission(const struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission() 611 posix_acl_chmod(const struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod() 712 int posix_acl_update_mode(const struct mnt_idmap *idmap, in posix_acl_update_mode() 892 static ssize_t vfs_posix_acl_to_xattr(const struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr() 940 set_posix_acl(const struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl() 1021 int simple_set_acl(const struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl() 1060 static int vfs_set_acl_idmapped_mnt(const struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt() 1094 int vfs_set_acl(const struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl() 1171 struct posix_acl *vfs_get_acl(const struct mnt_idmap *idmap, in vfs_get_acl() [all …]
|
| H A D | namei.c | 374 static int check_acl(const struct mnt_idmap *idmap, in check_acl() 438 static int acl_permission_check(const struct mnt_idmap *idmap, in acl_permission_check() 521 int generic_permission(const struct mnt_idmap *idmap, struct inode *inode, in generic_permission() 578 static inline int do_inode_permission(const struct mnt_idmap *idmap, in do_inode_permission() 628 int inode_permission(const struct mnt_idmap *idmap, in inode_permission() 683 static __always_inline int lookup_inode_permission_may_exec(const struct mnt_idmap *idmap, in lookup_inode_permission_may_exec() 1276 const 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(const struct mnt_idmap *idmap, in safe_hardlink_source() 1360 int may_linkat(const struct mnt_idmap *idma [all...] |
| H A D | xattr.c | 103 int may_write_xattr(const struct mnt_idmap *idmap, struct inode *inode) in may_write_xattr() 126 xattr_permission(const struct mnt_idmap *idmap, struct inode *inode, in xattr_permission() 207 __vfs_setxattr(const struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr() 245 int __vfs_setxattr_noperm(const struct mnt_idmap *idmap, in __vfs_setxattr_noperm() 298 __vfs_setxattr_locked(const struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr_locked() 327 vfs_setxattr(const struct mnt_idmap *idmap, struct dentry *dentry, in vfs_setxattr() 361 xattr_getsecurity(const struct mnt_idmap *idmap, struct inode *inode, in xattr_getsecurity() 398 vfs_getxattr_alloc(const struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr_alloc() 451 vfs_getxattr(const struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr() 530 __vfs_removexattr(const struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_removexattr() [all …]
|
| /linux/fs/smb/server/ |
| H A D | vfs.h | 77 void ksmbd_vfs_query_maximal_access(const struct mnt_idmap *idmap, 107 ssize_t ksmbd_vfs_getxattr(const struct mnt_idmap *idmap, 111 ssize_t ksmbd_vfs_casexattr_len(const struct mnt_idmap *idmap, 114 int ksmbd_vfs_setxattr(const struct mnt_idmap *idmap, 120 int ksmbd_vfs_remove_xattr(const struct mnt_idmap *idmap, 150 const struct mnt_idmap *idmap, 155 int ksmbd_vfs_remove_acl_xattrs(const struct mnt_idmap *idmap, 157 int ksmbd_vfs_remove_sd_xattrs(const struct mnt_idmap *idmap, const struct path *path); 159 const struct mnt_idmap *idmap, 164 const struct mnt_idmap *idmap, [all …]
|
| H A D | smbacl.h | 84 int parse_sec_desc(const struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 86 int build_sec_desc(const struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 108 static inline uid_t posix_acl_uid_translate(const struct mnt_idmap *idmap, in posix_acl_uid_translate() 120 static inline gid_t posix_acl_gid_translate(const struct mnt_idmap *idmap, in posix_acl_gid_translate()
|
| H A D | vfs.c | 118 void ksmbd_vfs_query_maximal_access(const 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 const 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(const struct mnt_idmap *idmap, in ksmbd_vfs_getcasexattr() 389 const struct mnt_idmap *idmap = file_mnt_idmap(fp->filp); in ksmbd_vfs_stream_write() 580 const 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/smb/client/ |
| H A D | cifsfs.h | 56 int cifs_create(const struct mnt_idmap *idmap, struct inode *dir, 60 int cifs_tmpfile(const struct mnt_idmap *idmap, struct inode *dir, 67 int cifs_mknod(const struct mnt_idmap *idmap, struct inode *inode, 69 struct dentry *cifs_mkdir(const struct mnt_idmap *idmap, struct inode *inode, 72 int cifs_rename2(const struct mnt_idmap *idmap, struct inode *source_dir, 81 int cifs_getattr(const struct mnt_idmap *idmap, const struct path *path, 83 int cifs_setattr(const struct mnt_idmap *idmap, struct dentry *direntry, 94 int cifs_fileattr_set(const struct mnt_idmap *idmap, struct dentry *dentry, 134 int cifs_symlink(const struct mnt_idmap *idmap, struct inode *inode,
|
| /linux/fs/ntfs/ |
| H A D | ea.h | 20 struct posix_acl *ntfs_get_acl(const struct mnt_idmap *idmap, struct dentry *dentry, 22 int ntfs_set_acl(const struct mnt_idmap *idmap, struct dentry *dentry, 24 int ntfs_init_acl(const struct mnt_idmap *idmap, struct inode *inode,
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 484 static int evm_xattr_change(const struct mnt_idmap *idmap, in evm_xattr_change() 520 static int evm_protect_xattr(const struct mnt_idmap *idmap, in evm_protect_xattr() 610 static int evm_inode_setxattr(const struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_setxattr() 642 static int evm_inode_removexattr(const struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_removexattr() 655 static int evm_inode_set_acl_change(const struct mnt_idmap *idmap, in evm_inode_set_acl_change() 674 static inline int evm_inode_set_acl_change(const struct mnt_idmap *idmap, in evm_inode_set_acl_change() 696 static int evm_inode_set_acl(const struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_set_acl() 748 static int evm_inode_remove_acl(const struct mnt_idmap *idmap, struct dentry *dentry, in evm_inode_remove_acl() 929 static inline void evm_inode_post_remove_acl(const struct mnt_idmap *idmap, in evm_inode_post_remove_acl() 936 static int evm_attr_change(const struct mnt_idmap *idmap, in evm_attr_change() [all …]
|
| /linux/fs/minix/ |
| H A D | namei.c | 36 static int minix_mknod(const struct mnt_idmap *idmap, struct inode *dir, in minix_mknod() 53 static int minix_tmpfile(const struct mnt_idmap *idmap, struct inode *dir, in minix_tmpfile() 66 static int minix_create(const struct mnt_idmap *idmap, struct inode *dir, in minix_create() 72 static int minix_symlink(const struct mnt_idmap *idmap, struct inode *dir, in minix_symlink() 107 static struct dentry *minix_mkdir(const struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir() 190 static int minix_rename(const struct mnt_idmap *idmap, in minix_rename()
|
| /linux/fs/coda/ |
| H A D | coda_linux.h | 49 int coda_permission(const struct mnt_idmap *idmap, struct inode *inode, 52 int coda_getattr(const struct mnt_idmap *, const struct path *, struct kstat *, 54 int coda_setattr(const struct mnt_idmap *, struct dentry *, struct iattr *);
|
| /linux/fs/ocfs2/ |
| H A D | file.h | 53 int ocfs2_setattr(const struct mnt_idmap *idmap, struct dentry *dentry, 55 int ocfs2_getattr(const struct mnt_idmap *idmap, const struct path *path, 57 int ocfs2_permission(const struct mnt_idmap *idmap,
|
| /linux/fs/ramfs/ |
| H A D | inode.c | 98 ramfs_mknod(const struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod() 121 static struct dentry *ramfs_mkdir(const struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir() 130 static int ramfs_create(const struct mnt_idmap *idmap, struct inode *dir, in ramfs_create() 136 static int ramfs_symlink(const struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink() 166 static int ramfs_tmpfile(const struct mnt_idmap *idmap, in ramfs_tmpfile()
|