| /linux/fs/ |
| H A D | mnt_idmapping.c | 80 vfsuid_t make_vfsuid(struct mnt_idmap *idmap, in make_vfsuid() argument 86 if (idmap == &nop_mnt_idmap) in make_vfsuid() 88 if (idmap == &invalid_mnt_idmap) in make_vfsuid() 96 return VFSUIDT_INIT_RAW(map_id_down(&idmap->uid_map, uid)); in make_vfsuid() 120 vfsgid_t make_vfsgid(struct mnt_idmap *idmap, in make_vfsgid() argument 125 if (idmap == &nop_mnt_idmap) in make_vfsgid() 127 if (idmap == &invalid_mnt_idmap) in make_vfsgid() 135 return VFSGIDT_INIT_RAW(map_id_down(&idmap->gid_map, gid)); in make_vfsgid() 150 kuid_t from_vfsuid(struct mnt_idmap *idmap, in from_vfsuid() argument 155 if (idmap == &nop_mnt_idmap) in from_vfsuid() [all …]
|
| /linux/fs/nfs/ |
| H A D | nfs4idmap.c | 65 struct idmap *idmap; member 68 struct idmap { struct 76 static struct user_namespace *idmap_userns(const struct idmap *idmap) in idmap_userns() argument 78 if (idmap && idmap->user_ns) in idmap_userns() 79 return idmap->user_ns; in idmap_userns() 280 const char *type, struct idmap *idmap) in nfs_idmap_request_key() argument 290 if (!idmap->user_ns || idmap->user_ns == &init_user_ns) in nfs_idmap_request_key() 293 mutex_lock(&idmap->idmap_mutex); in nfs_idmap_request_key() 295 desc, NULL, "", 0, idmap); in nfs_idmap_request_key() 296 mutex_unlock(&idmap->idmap_mutex); in nfs_idmap_request_key() [all …]
|
| /linux/Documentation/admin-guide/nfs/ |
| H A D | nfs-idmapper.rst | 9 or by placing a call to the rpc.idmap daemon. 19 legacy rpc.idmap daemon for the id mapping. This result will be stored 20 in a custom NFS idmap cache. 31 ``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` 34 This will direct all id_resolver requests to the program /usr/sbin/nfs.idmap. 36 expire. This parameter is optional for /usr/sbin/nfs.idmap. When the timeout 37 is not specified, nfs.idmap will default to 600 seconds. 53 ``create id_resolver * * /usr/sbin/nfs.idmap %k %d 600`` 59 /usr/sbin/nfs.idmap will handle gid, user, and group lookups. 65 nfs.idmap [all …]
|
| /linux/fs/smb/server/ |
| H A D | smbacl.h | 84 int parse_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 86 int build_sec_desc(struct mnt_idmap *idmap, struct smb_ntsd *pntsd, 107 static inline uid_t posix_acl_uid_translate(struct mnt_idmap *idmap, in posix_acl_uid_translate() argument 113 vfsuid = make_vfsuid(idmap, &init_user_ns, pace->e_uid); in posix_acl_uid_translate() 119 static inline gid_t posix_acl_gid_translate(struct mnt_idmap *idmap, in posix_acl_gid_translate() argument 125 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); in posix_acl_gid_translate()
|
| H A D | ndr.h | 17 int ndr_encode_posix_acl(struct ndr *n, struct mnt_idmap *idmap,
|
| /linux/security/integrity/evm/ |
| H A D | evm_main.c | 474 * @idmap: idmap of the mount in evm_xattr_change() 484 static int evm_xattr_change(struct mnt_idmap *idmap, 520 static int evm_protect_xattr(struct mnt_idmap *idmap, in evm_protect_xattr() 582 !evm_xattr_change(idmap, dentry, xattr_name, xattr_value, 597 * @idmap: idmap of the mount in evm_inode_setxattr() 610 static int evm_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, 629 return evm_protect_xattr(idmap, dentry, xattr_name, xattr_value, in evm_inode_removexattr() 635 * @idmap in evm_inode_set_acl_change() 461 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/efivarfs/ |
| H A D | inode.c | 77 static int efivarfs_create(struct mnt_idmap *idmap, struct inode *dir, in efivarfs_create() argument 153 efivarfs_fileattr_set(struct mnt_idmap *idmap, in efivarfs_fileattr_set() argument 173 static int efivarfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in efivarfs_setattr() argument 179 error = setattr_prepare(idmap, dentry, iattr); in efivarfs_setattr() 183 setattr_copy(idmap, inode, iattr); in efivarfs_setattr()
|
| /linux/fs/ocfs2/ |
| H A D | file.h | 53 int ocfs2_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 55 int ocfs2_getattr(struct mnt_idmap *idmap, const struct path *path, 57 int ocfs2_permission(struct mnt_idmap *idmap,
|
| H A D | ioctl.h | 15 int ocfs2_fileattr_set(struct mnt_idmap *idmap,
|
| H A D | acl.h | 20 int ocfs2_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
| /linux/fs/minix/ |
| H A D | namei.c | 36 static int minix_mknod(struct mnt_idmap *idmap, struct inode *dir, in minix_mknod() argument 53 static int minix_tmpfile(struct mnt_idmap *idmap, struct inode *dir, in minix_tmpfile() argument 66 static int minix_create(struct mnt_idmap *idmap, struct inode *dir, in minix_create() argument 72 static int minix_symlink(struct mnt_idmap *idmap, struct inode *dir, in minix_symlink() argument 107 static struct dentry *minix_mkdir(struct mnt_idmap *idmap, struct inode *dir, in minix_mkdir() argument 190 static int minix_rename(struct mnt_idmap *idmap, in minix_rename() argument
|
| /linux/fs/ramfs/ |
| H A D | inode.c | 98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod() argument 121 static struct dentry *ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir() argument 130 static int ramfs_create(struct mnt_idmap *idmap, struct inode *dir, in ramfs_create() argument 136 static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, in ramfs_symlink() argument 166 static int ramfs_tmpfile(struct mnt_idmap *idmap, in ramfs_tmpfile() argument
|
| /linux/fs/coda/ |
| H A D | pioctl.c | 27 static int coda_ioctl_permission(struct mnt_idmap *idmap, 44 static int coda_ioctl_permission(struct mnt_idmap *idmap, in coda_ioctl_permission() argument
|
| /linux/security/integrity/ima/ |
| H A D | ima_appraise.c | 74 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_must_appraise() argument 83 return ima_match_policy(idmap, inode, current_cred(), &prop, in ima_must_appraise() 623 * @idmap: idmap of the mount the inode was found from in ima_appraise_measurement() 632 static void ima_inode_post_setattr(struct mnt_idmap *idmap, in ima_update_xattr() 643 action = ima_must_appraise(idmap, inode, MAY_ACCESS, POST_SETATTR); in ima_update_xattr() 755 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in validate_hash_algo() 788 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() 797 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() 813 static int ima_inode_remove_acl(struct mnt_idmap *idmap, struc in ima_inode_setxattr() 661 ima_inode_post_setattr(struct mnt_idmap * idmap,struct dentry * dentry,int ia_valid) ima_inode_post_setattr() argument 784 ima_inode_setxattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name,const void * xattr_value,size_t xattr_value_len,int flags) ima_inode_setxattr() argument 817 ima_inode_set_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name,struct posix_acl * kacl) ima_inode_set_acl() argument 826 ima_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * xattr_name) ima_inode_removexattr() argument 842 ima_inode_remove_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) ima_inode_remove_acl() argument [all...] |
| H A D | ima.h | 423 int ima_get_action(struct mnt_idmap *idmap, struct inode *inode, 437 int process_buffer_measurement(struct mnt_idmap *idmap, 454 int ima_match_policy(struct mnt_idmap *idmap, struct inode *inode, in ima_check_blacklist() 487 int ima_must_appraise(struct mnt_idmap *idmap, struct inode *inode, in ima_get_hash_algo() 517 static inline int ima_must_appraise(struct mnt_idmap *idmap, in ima_read_modsig() 468 ima_must_appraise(struct mnt_idmap * idmap,struct inode * inode,int mask,enum ima_hooks func) ima_must_appraise() argument
|
| /linux/fs/9p/ |
| H A D | acl.h | 13 struct posix_acl *v9fs_iop_get_acl(struct mnt_idmap *idmap, 15 int v9fs_iop_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
| /linux/security/ |
| H A D | commoncap.c | 338 * @idmap: idmap of the mount the inode was found from 343 * If the inode has been found through an idmapped mount the idmap of 344 * the vfsmount must be passed through @idmap. This function will then 345 * take care to map the inode according to @idmap before checking 351 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry) in cap_inode_killpriv() argument 355 error = __vfs_removexattr(idmap, dentry, XATTR_NAME_CAPS); in cap_inode_killpriv() 420 int cap_inode_getsecurity(struct mnt_idmap *idmap, in cap_inode_getsecurity() argument 441 size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf, in cap_inode_getsecurity() 463 vfsroot = make_vfsuid(idmap, fs_n in cap_inode_getsecurity() 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...] |
| H A D | security.c | 1423 * @idmap: idmap of the mount 1428 void security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry) in security_path_post_mknod() argument 1432 call_void_hook(path_post_mknod, idmap, dentry); in security_path_post_mknod() 1636 * @idmap: idmap of the mount 1641 void security_inode_post_create_tmpfile(struct mnt_idmap *idmap, in security_inode_post_create_tmpfile() argument 1646 call_void_hook(inode_post_create_tmpfile, idmap, inode); in security_inode_post_create_tmpfile() 1847 * @idmap: idmap o 1858 security_inode_setattr(struct mnt_idmap * idmap,struct dentry * dentry,struct iattr * attr) security_inode_setattr() argument 1875 security_inode_post_setattr(struct mnt_idmap * idmap,struct dentry * dentry,int ia_valid) security_inode_post_setattr() argument 1924 security_inode_setxattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * name,const void * value,size_t size,int flags) security_inode_setxattr() argument 1956 security_inode_set_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name,struct posix_acl * kacl) security_inode_set_acl() argument 1993 security_inode_get_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) security_inode_get_acl() argument 2012 security_inode_remove_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) security_inode_remove_acl() argument 2029 security_inode_post_remove_acl(struct mnt_idmap * idmap,struct dentry * dentry,const char * acl_name) security_inode_post_remove_acl() argument 2111 security_inode_removexattr(struct mnt_idmap * idmap,struct dentry * dentry,const char * name) security_inode_removexattr() argument 2200 security_inode_killpriv(struct mnt_idmap * idmap,struct dentry * dentry) security_inode_killpriv() argument 2222 security_inode_getsecurity(struct mnt_idmap * idmap,struct inode * inode,const char * name,void ** buffer,bool alloc) security_inode_getsecurity() argument [all...] |
| /linux/fs/tracefs/ |
| H A D | inode.c | 97 static struct dentry *tracefs_syscall_mkdir(struct mnt_idmap *idmap, in tracefs_syscall_mkdir() argument 192 static int tracefs_permission(struct mnt_idmap *idmap, in tracefs_permission() argument 196 return generic_permission(idmap, inode, mask); in tracefs_permission() 199 static int tracefs_getattr(struct mnt_idmap *idmap, in tracefs_getattr() argument 206 generic_fillattr(idmap, request_mask, inode, stat); in tracefs_getattr() 210 static int tracefs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, in tracefs_setattr() argument 223 return simple_setattr(idmap, dentry, attr); in tracefs_setattr()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 233 static int map_ids_from_idmap(struct list *idmap, pid_t pid) in map_ids_from_idmap() argument 240 if (list_empty(idmap)) in map_ids_from_idmap() 250 list_for_each(iterator, idmap) { in map_ids_from_idmap() 281 static int get_userns_fd_from_idmap(struct list *idmap) in get_userns_fd_from_idmap() argument 292 ret = map_ids_from_idmap(idmap, pid); in get_userns_fd_from_idmap()
|
| /linux/fs/xfs/ |
| H A D | xfs_symlink.h | 10 int xfs_symlink(struct mnt_idmap *idmap, struct xfs_inode *dp,
|
| /linux/fs/proc/ |
| H A D | fd.h | 13 extern int proc_fd_permission(struct mnt_idmap *idmap,
|
| /linux/fs/gfs2/ |
| H A D | acl.h | 16 int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
| /linux/fs/jfs/ |
| H A D | jfs_acl.h | 11 int jfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
|
| /linux/arch/arm64/kernel/ |
| H A D | cpu-reset.S | 17 .pushsection .idmap.text, "a"
|