Home
last modified time | relevance | path

Searched defs:idmap (Results 1 – 25 of 227) sorted by relevance

12345678910

/linux/fs/nfs/
H A Dnfs4idmap.c65 struct idmap *idmap; member
68 struct idmap { struct
69 struct rpc_pipe_dir_object idmap_pdo; argument
70 struct rpc_pipe *idmap_pipe; argument
71 struct idmap_legacy_upcalldata *idmap_upcall_data; argument
72 struct mutex idmap_mutex; argument
76 static struct user_namespace *idmap_userns(const struct idmap *idmap) in idmap_userns()
280 const char *type, struct idmap *idmap) in nfs_idmap_request_key()
307 size_t data_size, struct idmap *idmap) in nfs_idmap_get_key()
348 size_t buflen, struct idmap *idmap) in nfs_idmap_lookup_name()
[all …]
/linux/fs/
H A Dmnt_idmapping.c80 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()
289 struct mnt_idmap *idmap; in alloc_mnt_idmap() local
315 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap) in mnt_idmap_get()
331 void mnt_idmap_put(struct mnt_idmap *idmap) in mnt_idmap_put()
339 int statmount_mnt_idmap(struct mnt_idmap *idmap, struct seq_file *seq, bool uid_map) in statmount_mnt_idmap()
H A Dattr.c33 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 Dbad_inode.c30 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 struct dentry *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()
H A Dposix_acl.c114 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 Dnamei.c369 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() local
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()
1405 static int may_create_in_sticky(struct mnt_idmap *idmap, struct nameidata *nd, in may_create_in_sticky()
[all …]
/linux/security/integrity/evm/
H A Devm_main.c461 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 Dvfs.c122 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, in ksmbd_vfs_query_maximal_access()
190 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() local
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() local
579 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file() local
813 static ssize_t ksmbd_vfs_xattr_len(struct mnt_idmap *idmap, in ksmbd_vfs_xattr_len()
828 ssize_t ksmbd_vfs_getxattr(struct mnt_idmap *idmap, in ksmbd_vfs_getxattr()
865 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap, in ksmbd_vfs_setxattr()
990 int ksmbd_vfs_remove_xattr(struct mnt_idmap *idmap, in ksmbd_vfs_remove_xattr()
1014 struct mnt_idmap *idmap = file_mnt_idmap(filp); in ksmbd_vfs_unlink() local
[all …]
H A Dsmbacl.c257 static int sid_to_id(struct mnt_idmap *idmap, in sid_to_id() argument
370 static void parse_dacl(struct mnt_idmap *idmap, in parse_dacl() argument
589 set_posix_acl_entries_dacl(struct mnt_idmap * idmap,struct smb_ace * pndace,struct smb_fattr * fattr,u16 * num_aces,u16 * size,u32 nt_aces_num) set_posix_acl_entries_dacl() argument
703 set_ntacl_dacl(struct mnt_idmap * idmap,struct smb_acl * pndacl,struct smb_acl * nt_dacl,unsigned int aces_size,const struct smb_sid * pownersid,const struct smb_sid * pgrpsid,struct smb_fattr * fattr) set_ntacl_dacl() argument
743 set_mode_dacl(struct mnt_idmap * idmap,struct smb_acl * pndacl,struct smb_fattr * fattr) set_mode_dacl() argument
829 parse_sec_desc(struct mnt_idmap * idmap,struct smb_ntsd * pntsd,int acl_len,struct smb_fattr * fattr) parse_sec_desc() argument
962 build_sec_desc(struct mnt_idmap * idmap,struct smb_ntsd * pntsd,struct smb_ntsd * ppntsd,int ppntsd_size,int addition_info,__u32 * secdesclen,struct smb_fattr * fattr) build_sec_desc() argument
1075 struct mnt_idmap *idmap = mnt_idmap(path->mnt); smb_inherit_dacl() local
1292 struct mnt_idmap *idmap = mnt_idmap(path->mnt); smb_check_perm_dacl() local
1462 struct mnt_idmap *idmap = mnt_idmap(path->mnt); set_info_sec() local
[all...]
/linux/fs/minix/
H A Dnamei.c36 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/xfs/
H A Dxfs_iops.c172 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()
304 struct mnt_idmap *idmap, in xfs_vn_mkdir()
429 struct mnt_idmap *idmap, in xfs_vn_symlink()
470 struct mnt_idmap *idmap, in xfs_vn_rename()
683 struct mnt_idmap *idmap, in xfs_vn_getattr()
758 struct mnt_idmap *idmap, in xfs_vn_change_ok()
781 struct mnt_idmap *idmap, in xfs_setattr_nonsize()
907 struct mnt_idmap *idmap, in xfs_vn_setattr_size()
[all …]
/linux/fs/f2fs/
H A Dnamei.c219 static struct inode *f2fs_new_inode(struct mnt_idmap *idmap, in f2fs_new_inode()
353 static int f2fs_create(struct mnt_idmap *idmap, struct inode *dir, in f2fs_create()
634 static int f2fs_symlink(struct mnt_idmap *idmap, struct inode *dir, in f2fs_symlink()
715 static struct dentry *f2fs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mkdir()
771 static int f2fs_mknod(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mknod()
815 static int __f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in __f2fs_tmpfile()
886 static int f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_tmpfile()
902 static int f2fs_create_whiteout(struct mnt_idmap *idmap, in f2fs_create_whiteout()
910 int f2fs_get_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_get_tmpfile()
917 static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in f2fs_rename()
[all …]
/linux/fs/ext2/
H A Dnamei.c102 ext2_create(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,bool excl) ext2_create() argument
122 ext2_tmpfile(struct mnt_idmap * idmap,struct inode * dir,struct file * file,umode_t mode) ext2_tmpfile() argument
136 ext2_mknod(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode,dev_t rdev) ext2_mknod() argument
157 ext2_symlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,const char * symname) ext2_symlink() argument
228 ext2_mkdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * dentry,umode_t mode) ext2_mkdir() argument
318 ext2_rename(struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) ext2_rename() argument
/linux/include/linux/
H A Dmnt_idmapping.h28 static inline bool is_valid_mnt_idmap(const struct mnt_idmap *idmap) in is_valid_mnt_idmap()
151 static inline bool vfsuid_has_fsmapping(struct mnt_idmap *idmap, in vfsuid_has_fsmapping()
189 static inline bool vfsgid_has_fsmapping(struct mnt_idmap *idmap, in vfsgid_has_fsmapping()
228 static inline kuid_t mapped_fsuid(struct mnt_idmap *idmap, in mapped_fsuid()
247 static inline kgid_t mapped_fsgid(struct mnt_idmap *idmap, in mapped_fsgid()
H A Dposix_acl.h117 static inline int posix_acl_chmod(struct mnt_idmap *idmap, in posix_acl_chmod()
144 static inline int vfs_set_acl(struct mnt_idmap *idmap, in vfs_set_acl()
151 static inline struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl()
158 static inline int vfs_remove_acl(struct mnt_idmap *idmap, in vfs_remove_acl()
/linux/fs/ecryptfs/
H A Dinode.c269 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()
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()
1110 static int ecryptfs_fileattr_set(struct mnt_idmap *idmap, in ecryptfs_fileattr_set()
[all …]
/linux/fs/ufs/
H A Dnamei.c72 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 struct dentry *ufs_mkdir(struct mnt_idmap * idmap, struct inode * dir, in ufs_mkdir()
244 static int ufs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ufs_rename()
/linux/fs/fuse/
H A Ddir.c742 get_create_supp_group(struct mnt_idmap * idmap,struct inode * dir,struct fuse_in_arg * ext) get_create_supp_group() argument
773 get_create_ext(struct mnt_idmap * idmap,struct fuse_args * args,struct inode * dir,struct dentry * dentry,umode_t mode) get_create_ext() argument
811 fuse_create_open(struct mnt_idmap * idmap,struct inode * dir,struct dentry * entry,struct file * file,unsigned int flags,umode_t mode,u32 opcode) fuse_create_open() argument
933 struct mnt_idmap *idmap = file_mnt_idmap(file); fuse_atomic_open() local
972 create_new_entry(struct mnt_idmap * idmap,struct fuse_mount * fm,struct fuse_args * args,struct inode * dir,struct dentry * entry,umode_t mode) create_new_entry() argument
1045 create_new_nondir(struct mnt_idmap * idmap,struct fuse_mount * fm,struct fuse_args * args,struct inode * dir,struct dentry * entry,umode_t mode) create_new_nondir() argument
1061 fuse_mknod(struct mnt_idmap * idmap,struct inode * dir,struct dentry * entry,umode_t mode,dev_t rdev) fuse_mknod() argument
1084 fuse_create(struct mnt_idmap * idmap,struct inode * dir,struct dentry * entry,umode_t mode,bool excl) fuse_create() argument
1090 fuse_tmpfile(struct mnt_idmap * idmap,struct inode * dir,struct file * file,umode_t mode) fuse_tmpfile() argument
1108 fuse_mkdir(struct mnt_idmap * idmap,struct inode * dir,struct dentry * entry,umode_t mode) fuse_mkdir() argument
1130 fuse_symlink(struct mnt_idmap * idmap,struct inode * dir,struct dentry * entry,const char * link) fuse_symlink() argument
1240 fuse_rename_common(struct mnt_idmap * idmap,struct inode * olddir,struct dentry * oldent,struct inode * newdir,struct dentry * newent,unsigned int flags,int opcode,size_t argsize) fuse_rename_common() argument
1290 fuse_rename2(struct mnt_idmap * idmap,struct inode * olddir,struct dentry * oldent,struct inode * newdir,struct dentry * newent,unsigned int flags) fuse_rename2() argument
1359 fuse_fillattr(struct mnt_idmap * idmap,struct inode * inode,struct fuse_attr * attr,struct kstat * stat) fuse_fillattr() argument
1413 fuse_do_statx(struct mnt_idmap * idmap,struct inode * inode,struct file * file,struct kstat * stat) fuse_do_statx() argument
1474 fuse_do_getattr(struct mnt_idmap * idmap,struct inode * inode,struct kstat * stat,struct file * file) fuse_do_getattr() argument
1520 fuse_update_get_attr(struct mnt_idmap * idmap,struct inode * inode,struct file * file,struct kstat * stat,u32 request_mask,unsigned int flags) fuse_update_get_attr() argument
1752 fuse_permission(struct mnt_idmap * idmap,struct inode * inode,int mask) fuse_permission() argument
1990 iattr_to_fattr(struct mnt_idmap * idmap,struct fuse_conn * fc,struct iattr * iattr,struct fuse_setattr_in * arg,bool trust_local_cmtime) iattr_to_fattr() argument
2132 fuse_do_setattr(struct mnt_idmap * idmap,struct dentry * dentry,struct iattr * attr,struct file * file) fuse_do_setattr() argument
2311 fuse_setattr(struct mnt_idmap * idmap,struct dentry * entry,struct iattr * attr) fuse_setattr() argument
2374 fuse_getattr(struct mnt_idmap * idmap,const struct path * path,struct kstat * stat,u32 request_mask,unsigned int flags) fuse_getattr() argument
[all...]
/linux/fs/ramfs/
H A Dinode.c98 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/orangefs/
H A Dnamei.c18 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/hfsplus/
H A Ddir.c469 static int hfsplus_symlink(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_symlink()
520 static int hfsplus_mknod(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_mknod()
570 static int hfsplus_create(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_create()
576 static struct dentry *hfsplus_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hfsplus_mkdir()
582 static int hfsplus_rename(struct mnt_idmap *idmap, in hfsplus_rename()
/linux/security/integrity/ima/
H A Dima_appraise.c74 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise()
651 static void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_inode_post_setattr()
774 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr()
807 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_set_acl()
816 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_removexattr()
832 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_remove_acl()
/linux/fs/ntfs3/
H A Dnamei.c107 static int ntfs_create(struct mnt_idmap *idmap, struct inode *dir, in ntfs_create()
117 static int ntfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mknod()
193 static int ntfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ntfs_symlink()
212 static struct dentry *ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mkdir()
246 static int ntfs_rename(struct mnt_idmap *idmap, struct inode *dir, in ntfs_rename()
/linux/fs/efivarfs/
H A Dinode.c77 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/hpfs/
H A Dnamei.c22 static struct dentry *hpfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in hpfs_mkdir()
131 static int hpfs_create(struct mnt_idmap *idmap, struct inode *dir, in hpfs_create()
218 static int hpfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in hpfs_mknod()
292 static int hpfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in hpfs_symlink()
503 static int hpfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in hpfs_rename()

12345678910