Home
last modified time | relevance | path

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

12345

/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 Dposix_acl.c121 static struct posix_acl *__get_acl(struct mnt_idmap *idmap, in __get_acl()
381 posix_acl_permission(struct mnt_idmap *idmap, struct inode *inode, in posix_acl_permission()
611 posix_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry, in posix_acl_chmod()
712 int posix_acl_update_mode(struct mnt_idmap *idmap, in posix_acl_update_mode()
892 static ssize_t vfs_posix_acl_to_xattr(struct mnt_idmap *idmap, in vfs_posix_acl_to_xattr()
940 set_posix_acl(struct mnt_idmap *idmap, struct dentry *dentry, in set_posix_acl()
1021 int simple_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in simple_set_acl()
1060 static int vfs_set_acl_idmapped_mnt(struct mnt_idmap *idmap, in vfs_set_acl_idmapped_mnt()
1094 int vfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in vfs_set_acl()
1171 struct posix_acl *vfs_get_acl(struct mnt_idmap *idmap, in vfs_get_acl()
[all …]
H A Dnamei.c374 static int check_acl(struct mnt_idmap *idmap, in check_acl()
438 static int acl_permission_check(struct mnt_idmap *idmap, in acl_permission_check()
521 int generic_permission(struct mnt_idmap *idmap, struct inode *inode, in generic_permission()
578 static inline int do_inode_permission(struct mnt_idmap *idmap, in do_inode_permission()
628 int inode_permission(struct mnt_idmap *idmap, in inode_permission()
683 static __always_inline int lookup_inode_permission_may_exec(struct mnt_idmap *idmap, in lookup_inode_permission_may_exec()
1276 struct mnt_idmap *idmap; in may_follow_link() local
1317 static bool safe_hardlink_source(struct mnt_idmap *idmap, in safe_hardlink_source()
1360 int may_linkat(struct mnt_idmap *idmap, const struct path *link) in may_linkat()
1410 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 evm_xattr_change(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name,const void * xattr_value,size_t xattr_value_len) evm_xattr_change() argument
497 evm_protect_xattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name,const void * xattr_value,size_t xattr_value_len) evm_protect_xattr() argument
587 evm_inode_setxattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name,const void * xattr_value,size_t xattr_value_len,int flags) evm_inode_setxattr() argument
619 evm_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name) evm_inode_removexattr() argument
632 evm_inode_set_acl_change(struct mnt_idmap * idmap,struct dentry * dentry,const char * name,struct posix_acl * kacl) evm_inode_set_acl_change() argument
651 evm_inode_set_acl_change(struct mnt_idmap * idmap,struct dentry * dentry,const char * name,struct posix_acl * kacl) evm_inode_set_acl_change() argument
673 evm_inode_set_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name,struct posix_acl * kacl) evm_inode_set_acl() argument
725 evm_inode_remove_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) evm_inode_remove_acl() argument
878 evm_inode_post_remove_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) evm_inode_post_remove_acl() argument
885 evm_attr_change(struct mnt_idmap * idmap,struct dentry * dentry,struct iattr * attr) evm_attr_change() argument
908 evm_inode_setattr(struct mnt_idmap * idmap,struct dentry * dentry,struct iattr * attr) evm_inode_setattr() argument
960 evm_inode_post_setattr(struct mnt_idmap * idmap,struct dentry * dentry,int ia_valid) evm_inode_post_setattr() argument
1092 evm_post_path_mknod(struct mnt_idmap * idmap,struct dentry * dentry) evm_post_path_mknod() argument
[all...]
/linux/fs/smb/server/
H A Dvfs.c118 void ksmbd_vfs_query_maximal_access(struct mnt_idmap *idmap, in ksmbd_vfs_query_maximal_access()
186 struct mnt_idmap *idmap; in ksmbd_vfs_mkdir() local
219 static ssize_t ksmbd_vfs_getcasexattr(struct mnt_idmap *idmap, in ksmbd_vfs_getcasexattr()
389 struct mnt_idmap *idmap = file_mnt_idmap(fp->filp); in ksmbd_vfs_stream_write() local
580 struct mnt_idmap *idmap; in ksmbd_vfs_remove_file() local
844 static ssize_t ksmbd_vfs_xattr_len(struct mnt_idmap *idmap, in ksmbd_vfs_xattr_len()
859 ssize_t ksmbd_vfs_getxattr(struct mnt_idmap *idmap, in ksmbd_vfs_getxattr()
896 int ksmbd_vfs_setxattr(struct mnt_idmap *idmap, in ksmbd_vfs_setxattr()
1180 int ksmbd_vfs_remove_xattr(struct mnt_idmap *idmap, in ksmbd_vfs_remove_xattr()
1205 struct mnt_idmap *idmap = file_mnt_idmap(filp); in ksmbd_vfs_unlink() local
[all …]
H A Dsmbacl.c260 static int sid_to_id(struct mnt_idmap *idmap, in sid_to_id()
386 static int parse_dacl(struct mnt_idmap *idmap, in parse_dacl()
622 static void set_posix_acl_entries_dacl(struct mnt_idmap *idmap, in set_posix_acl_entries_dacl()
753 static void set_ntacl_dacl(struct mnt_idmap *idmap, in set_ntacl_dacl()
812 static void set_mode_dacl(struct mnt_idmap *idmap, in set_mode_dacl()
898 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, in parse_sec_desc()
1033 int build_sec_desc(struct mnt_idmap *idmap, in build_sec_desc()
1199 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_inherit_dacl() local
1454 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_check_perm_dacl() local
1676 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in set_info_sec() local
/linux/fs/f2fs/
H A Dnamei.c234 static struct inode *f2fs_new_inode(struct mnt_idmap *idmap, in f2fs_new_inode()
368 static int f2fs_create(struct mnt_idmap *idmap, struct inode *dir, in f2fs_create()
665 static int f2fs_symlink(struct mnt_idmap *idmap, struct inode *dir, in f2fs_symlink()
754 static struct dentry *f2fs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mkdir()
813 static int f2fs_mknod(struct mnt_idmap *idmap, struct inode *dir, in f2fs_mknod()
860 static int __f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in __f2fs_tmpfile()
931 static int f2fs_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_tmpfile()
947 static int f2fs_create_whiteout(struct mnt_idmap *idmap, in f2fs_create_whiteout()
955 int f2fs_get_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in f2fs_get_tmpfile()
962 static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in f2fs_rename()
[all …]
/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()
303 struct mnt_idmap *idmap, in xfs_vn_mkdir()
428 struct mnt_idmap *idmap, in xfs_vn_symlink()
469 struct mnt_idmap *idmap, in xfs_vn_rename()
682 struct mnt_idmap *idmap, in xfs_vn_getattr()
757 struct mnt_idmap *idmap, in xfs_vn_change_ok()
780 struct mnt_idmap *idmap, in xfs_setattr_nonsize()
906 struct mnt_idmap *idmap, in xfs_vn_setattr_size()
[all …]
/linux/security/integrity/ima/
H A Dima_appraise.c74 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise()
637 static void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_inode_post_setattr()
762 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr()
795 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_set_acl()
804 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_removexattr()
820 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_remove_acl()
/linux/fs/ntfs3/
H A Dnamei.c114 static int ntfs_create(struct mnt_idmap *idmap, struct inode *dir, in ntfs_create()
124 static int ntfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mknod()
212 static int ntfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ntfs_symlink()
231 static struct dentry *ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mkdir()
265 static int ntfs_rename(struct mnt_idmap *idmap, struct inode *dir, in ntfs_rename()
H A Dxattr.c546 struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ntfs_get_acl()
598 static noinline int ntfs_set_acl_ex(struct mnt_idmap *idmap, in ntfs_set_acl_ex()
680 int ntfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ntfs_set_acl()
691 int ntfs_init_acl(struct mnt_idmap *idmap, struct inode *inode, in ntfs_init_acl()
725 int ntfs_acl_chmod(struct mnt_idmap *idmap, struct dentry *dentry) in ntfs_acl_chmod()
866 struct mnt_idmap *idmap, struct dentry *de, in ntfs_setxattr()
/linux/fs/kernfs/
H A Dinode.c110 int kernfs_iop_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in kernfs_iop_setattr()
182 int kernfs_iop_getattr(struct mnt_idmap *idmap, in kernfs_iop_getattr()
273 int kernfs_iop_permission(struct mnt_idmap *idmap, in kernfs_iop_permission()
345 struct mnt_idmap *idmap, in kernfs_vfs_xattr_set()
357 struct mnt_idmap *idmap, in kernfs_vfs_user_xattr_set()
/linux/fs/overlayfs/
H A Dinode.c21 int ovl_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in ovl_setattr()
171 int ovl_getattr(struct mnt_idmap *idmap, const struct path *path, in ovl_getattr()
306 int ovl_permission(struct mnt_idmap *idmap, in ovl_permission()
358 struct mnt_idmap *idmap, in ovl_idmap_posix_acl()
409 struct mnt_idmap *idmap; in ovl_get_acl_path() local
450 struct posix_acl *do_ovl_get_acl(struct mnt_idmap *idmap, in do_ovl_get_acl()
539 int ovl_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ovl_set_acl()
653 int ovl_fileattr_set(struct mnt_idmap *idmap, in ovl_fileattr_set()
/linux/kernel/bpf/
H A Dstates.c319 static bool check_ids(u32 old_id, u32 cur_id, struct bpf_idmap *idmap) in check_ids()
380 static bool check_scalar_ids(u32 old_id, u32 cur_id, struct bpf_idmap *idmap) in check_scalar_ids()
490 struct bpf_idmap *idmap) in regs_exact()
506 struct bpf_reg_state *rcur, struct bpf_idmap *idmap, in regsafe()
702 struct bpf_func_state *cur, struct bpf_idmap *idmap, in stacksafe()
847 struct bpf_func_state *cur, struct bpf_idmap *idmap, in stack_arg_safe()
869 struct bpf_idmap *idmap) in refsafe()
973 struct bpf_idmap *idmap = &env->idmap_scratch; in reset_idmap_scratch() local
/linux/fs/ntfs/
H A Dea.c878 struct mnt_idmap *idmap, struct dentry *unused, in ntfs_setxattr()
980 struct posix_acl *ntfs_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ntfs_get_acl()
1024 static noinline int ntfs_set_acl_ex(struct mnt_idmap *idmap, in ntfs_set_acl_ex()
1106 int ntfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ntfs_set_acl()
1112 int ntfs_init_acl(struct mnt_idmap *idmap, struct inode *inode, in ntfs_init_acl()
H A Dnamei.c394 static struct ntfs_inode *__ntfs_create(struct mnt_idmap *idmap, struct inode *dir, in __ntfs_create()
735 static int ntfs_create(struct mnt_idmap *idmap, struct inode *dir, in ntfs_create()
1052 static struct dentry *ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mkdir()
1251 static int ntfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ntfs_rename()
1402 static int ntfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ntfs_symlink()
1450 static int ntfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ntfs_mknod()
/linux/security/
H A Dcommoncap.c351 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry) in cap_inode_killpriv() argument
420 int cap_inode_getsecurity(struct mnt_idmap *idmap, in cap_inode_getsecurity() argument
569 cap_convert_nscap(struct mnt_idmap * idmap,struct dentry * dentry,const void ** ivalue,size_t size) cap_convert_nscap() argument
675 get_vfs_caps_from_disk(struct mnt_idmap * idmap,const struct dentry * dentry,struct cpu_vfs_cap_data * cpu_caps) get_vfs_caps_from_disk() argument
1066 cap_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * name) cap_inode_removexattr() argument
[all...]
/linux/fs/tracefs/
H A Dinode.c97 static struct dentry *tracefs_syscall_mkdir(struct mnt_idmap *idmap, in tracefs_syscall_mkdir()
192 static int tracefs_permission(struct mnt_idmap *idmap, in tracefs_permission()
199 static int tracefs_getattr(struct mnt_idmap *idmap, in tracefs_getattr()
210 static int tracefs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in tracefs_setattr()
/linux/fs/orangefs/
H A Dinode.c831 int orangefs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in orangefs_setattr()
851 int orangefs_getattr(struct mnt_idmap *idmap, const struct path *path, in orangefs_getattr()
875 int orangefs_permission(struct mnt_idmap *idmap, in orangefs_permission()
937 static int orangefs_fileattr_set(struct mnt_idmap *idmap, in orangefs_fileattr_set()
/linux/fs/coda/
H A Dpioctl.c44 static int coda_ioctl_permission(struct mnt_idmap *idmap, in coda_ioctl_permission()
/linux/fs/hfsplus/
H A Dxattr_user.c25 struct mnt_idmap *idmap, in hfsplus_user_setxattr()
H A Dxattr_trusted.c25 struct mnt_idmap *idmap, in hfsplus_trusted_setxattr()
/linux/fs/jffs2/
H A Dxattr_user.c28 struct mnt_idmap *idmap, in jffs2_user_setxattr()

12345