Home
last modified time | relevance | path

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

12345678910

/linux-6.12.1/fs/nfs/
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()
351 size_t buflen, struct idmap *idmap) in nfs_idmap_lookup_name()
[all …]
/linux-6.12.1/fs/
Dmnt_idmapping.c79 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid()
119 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid()
149 kuid_t from_vfsuid(struct mnt_idmap *idmap, in from_vfsuid()
178 kgid_t from_vfsgid(struct mnt_idmap *idmap, in from_vfsgid()
273 static void free_mnt_idmap(struct mnt_idmap *idmap) in free_mnt_idmap()
288 struct mnt_idmap *idmap; in alloc_mnt_idmap() local
314 struct mnt_idmap *mnt_idmap_get(struct mnt_idmap *idmap) in mnt_idmap_get()
330 void mnt_idmap_put(struct mnt_idmap *idmap) in mnt_idmap_put()
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()
299 void setattr_copy(struct mnt_idmap *idmap, struct inode *inode, in setattr_copy()
322 int may_setattr(struct mnt_idmap *idmap, struct inode *inode, in may_setattr()
377 int notify_change(struct mnt_idmap *idmap, struct dentry *dentry, in notify_change()
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 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()
148 static int bad_inode_tmpfile(struct mnt_idmap *idmap, in bad_inode_tmpfile()
155 static int bad_inode_set_acl(struct mnt_idmap *idmap, in bad_inode_set_acl()
Dposix_acl.c114 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl()
375 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission()
605 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod()
706 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 …]
Dxattr.c97 int may_write_xattr(struct mnt_idmap *idmap, struct inode *inode) in may_write_xattr()
113 xattr_permission(struct mnt_idmap *idmap, struct inode *inode, in xattr_permission()
184 __vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr()
222 int __vfs_setxattr_noperm(struct mnt_idmap *idmap, in __vfs_setxattr_noperm()
275 __vfs_setxattr_locked(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_setxattr_locked()
304 vfs_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_setxattr()
338 xattr_getsecurity(struct mnt_idmap *idmap, struct inode *inode, in xattr_getsecurity()
375 vfs_getxattr_alloc(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr_alloc()
428 vfs_getxattr(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_getxattr()
504 __vfs_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in __vfs_removexattr()
[all …]
Dnamei.c300 static int check_acl(struct mnt_idmap *idmap, in check_acl()
345 static int acl_permission_check(struct mnt_idmap *idmap, in acl_permission_check()
406 int generic_permission(struct mnt_idmap *idmap, struct inode *inode, in generic_permission()
463 static inline int do_inode_permission(struct mnt_idmap *idmap, in do_inode_permission()
510 int inode_permission(struct mnt_idmap *idmap, in inode_permission()
1109 struct mnt_idmap *idmap; in may_follow_link() local
1150 static bool safe_hardlink_source(struct mnt_idmap *idmap, in safe_hardlink_source()
1193 int may_linkat(struct mnt_idmap *idmap, const struct path *link) in may_linkat()
1243 static int may_create_in_sticky(struct mnt_idmap *idmap, struct nameidata *nd, in may_create_in_sticky()
1754 static inline int may_lookup(struct mnt_idmap *idmap, in may_lookup()
[all …]
/linux-6.12.1/security/integrity/evm/
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-6.12.1/fs/smb/server/
Dvfs.c143 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, in ksmbd_vfs_query_maximal_access()
212 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() local
257 static ssize_t ksmbd_vfs_getcasexattr(struct mnt_idmap *idmap, in ksmbd_vfs_getcasexattr()
421 struct mnt_idmap *idmap = file_mnt_idmap(fp->filp); in ksmbd_vfs_stream_write() local
600 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file() local
883 static ssize_t ksmbd_vfs_xattr_len(struct mnt_idmap *idmap, in ksmbd_vfs_xattr_len()
898 ssize_t ksmbd_vfs_getxattr(struct mnt_idmap *idmap, in ksmbd_vfs_getxattr()
935 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap, in ksmbd_vfs_setxattr()
1060 int ksmbd_vfs_remove_xattr(struct mnt_idmap *idmap, in ksmbd_vfs_remove_xattr()
1084 struct mnt_idmap *idmap = file_mnt_idmap(filp); in ksmbd_vfs_unlink() local
[all …]
Dsmbacl.c257 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()
581 static void set_posix_acl_entries_dacl(struct mnt_idmap *idmap, in set_posix_acl_entries_dacl()
695 static void set_ntacl_dacl(struct mnt_idmap *idmap, in set_ntacl_dacl()
735 static void set_mode_dacl(struct mnt_idmap *idmap, in set_mode_dacl()
814 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, in parse_sec_desc()
895 int build_sec_desc(struct mnt_idmap *idmap, in build_sec_desc()
1008 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_inherit_dacl() local
1218 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_check_perm_dacl() local
1388 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in set_info_sec() local
/linux-6.12.1/fs/xfs/
Dxfs_iops.c169 struct mnt_idmap *idmap, in xfs_generic_create()
279 struct mnt_idmap *idmap, in xfs_vn_mknod()
290 struct mnt_idmap *idmap, in xfs_vn_create()
301 struct mnt_idmap *idmap, in xfs_vn_mkdir()
426 struct mnt_idmap *idmap, in xfs_vn_symlink()
469 struct mnt_idmap *idmap, in xfs_vn_rename()
575 struct mnt_idmap *idmap, in xfs_vn_getattr()
658 struct mnt_idmap *idmap, in xfs_vn_change_ok()
681 struct mnt_idmap *idmap, in xfs_setattr_nonsize()
810 struct mnt_idmap *idmap, in xfs_setattr_size()
[all …]
/linux-6.12.1/fs/minix/
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 int minix_mkdir(struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir()
176 static int minix_rename(struct mnt_idmap *idmap, in minix_rename()
/linux-6.12.1/fs/f2fs/
Dnamei.c219 static struct inode *f2fs_new_inode(struct mnt_idmap *idmap, in f2fs_new_inode()
352 static int f2fs_create(struct mnt_idmap *idmap, struct inode *dir, in f2fs_create()
606 static int f2fs_symlink(struct mnt_idmap *idmap, struct inode *dir, in f2fs_symlink()
686 static int f2fs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mkdir()
741 static int f2fs_mknod(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mknod()
784 static int __f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in __f2fs_tmpfile()
854 static int f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_tmpfile()
870 static int f2fs_create_whiteout(struct mnt_idmap *idmap, in f2fs_create_whiteout()
878 int f2fs_get_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_get_tmpfile()
885 static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in f2fs_rename()
[all …]
/linux-6.12.1/fs/ext2/
Dnamei.c102 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()
317 static int ext2_rename (struct mnt_idmap * idmap, in ext2_rename()
/linux-6.12.1/fs/fuse/
Ddir.c548 static int get_create_supp_group(struct mnt_idmap *idmap, in get_create_supp_group()
579 static int get_create_ext(struct mnt_idmap *idmap, in get_create_ext()
617 static int fuse_create_open(struct mnt_idmap *idmap, struct inode *dir, in fuse_create_open()
737 struct mnt_idmap *idmap = file_mnt_idmap(file); in fuse_atomic_open() local
783 static int create_new_entry(struct mnt_idmap *idmap, struct fuse_mount *fm, in create_new_entry()
853 static int fuse_mknod(struct mnt_idmap *idmap, struct inode *dir, in fuse_mknod()
876 static int fuse_create(struct mnt_idmap *idmap, struct inode *dir, in fuse_create()
882 static int fuse_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in fuse_tmpfile()
900 static int fuse_mkdir(struct mnt_idmap *idmap, struct inode *dir, in fuse_mkdir()
922 static int fuse_symlink(struct mnt_idmap *idmap, struct inode *dir, in fuse_symlink()
[all …]
/linux-6.12.1/fs/sysv/
Dnamei.c44 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.12.1/fs/ecryptfs/
Dinode.c264 ecryptfs_create(struct mnt_idmap *idmap, in ecryptfs_create()
467 static int ecryptfs_symlink(struct mnt_idmap *idmap, in ecryptfs_symlink()
506 static int ecryptfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mkdir()
559 ecryptfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ecryptfs_mknod()
585 ecryptfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ecryptfs_rename()
877 ecryptfs_permission(struct mnt_idmap *idmap, struct inode *inode, in ecryptfs_permission()
897 static int ecryptfs_setattr(struct mnt_idmap *idmap, in ecryptfs_setattr()
985 static int ecryptfs_getattr_link(struct mnt_idmap *idmap, in ecryptfs_getattr_link()
1019 static int ecryptfs_getattr(struct mnt_idmap *idmap, in ecryptfs_getattr()
1132 static int ecryptfs_fileattr_set(struct mnt_idmap *idmap, in ecryptfs_fileattr_set()
[all …]
/linux-6.12.1/fs/ufs/
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 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.12.1/fs/ramfs/
Dinode.c98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod()
122 static int ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir()
131 static int ramfs_create(struct mnt_idmap *idmap, struct inode *dir, in ramfs_create()
137 static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink()
168 static int ramfs_tmpfile(struct mnt_idmap *idmap, in ramfs_tmpfile()
/linux-6.12.1/include/linux/
Dposix_acl.h112 static inline int posix_acl_chmod(struct mnt_idmap *idmap, in posix_acl_chmod()
139 static inline int vfs_set_acl(struct mnt_idmap *idmap, in vfs_set_acl()
146 static inline struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl()
153 static inline int vfs_remove_acl(struct mnt_idmap *idmap, in vfs_remove_acl()
Dmnt_idmapping.h146 static inline bool vfsuid_has_fsmapping(struct mnt_idmap *idmap, in vfsuid_has_fsmapping()
184 static inline bool vfsgid_has_fsmapping(struct mnt_idmap *idmap, in vfsgid_has_fsmapping()
223 static inline kuid_t mapped_fsuid(struct mnt_idmap *idmap, in mapped_fsuid()
242 static inline kgid_t mapped_fsgid(struct mnt_idmap *idmap, in mapped_fsgid()
/linux-6.12.1/fs/orangefs/
Dnamei.c18 static int orangefs_create(struct mnt_idmap *idmap, in orangefs_create()
216 static int orangefs_symlink(struct mnt_idmap *idmap, in orangefs_symlink()
303 static int orangefs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in orangefs_mkdir()
372 static int orangefs_rename(struct mnt_idmap *idmap, in orangefs_rename()
/linux-6.12.1/fs/hfsplus/
Ddir.c437 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.12.1/security/integrity/ima/
Dima_appraise.c73 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise()
638 static void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_inode_post_setattr()
752 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr()
783 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_set_acl()
792 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_removexattr()
806 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_remove_acl()
/linux-6.12.1/fs/ntfs3/
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()
189 static int ntfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ntfs_symlink()
204 static int ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mkdir()
234 static int ntfs_rename(struct mnt_idmap *idmap, struct inode *dir, in ntfs_rename()

12345678910