Home
last modified time | relevance | path

Searched refs:nop_mnt_idmap (Results 1 – 25 of 112) sorted by relevance

12345

/linux/fs/
H A Dmnt_idmapping.c31 struct mnt_idmap nop_mnt_idmap = { variable
34 EXPORT_SYMBOL_GPL(nop_mnt_idmap);
86 if (idmap == &nop_mnt_idmap) in make_vfsuid()
125 if (idmap == &nop_mnt_idmap) in make_vfsgid()
155 if (idmap == &nop_mnt_idmap) in from_vfsuid()
184 if (idmap == &nop_mnt_idmap) in from_vfsgid()
311 * If @idmap is not the @nop_mnt_idmap bump the reference count.
317 if (idmap != &nop_mnt_idmap && idmap != &invalid_mnt_idmap) in mnt_idmap_get()
333 if (idmap != &nop_mnt_idmap && idmap != &invalid_mnt_idmap && in mnt_idmap_put()
H A Dbpf_fs_kfuncs.c114 return inode_permission(&nop_mnt_idmap, inode, MAY_READ); in bpf_xattr_read_permission()
183 return inode_permission(&nop_mnt_idmap, inode, MAY_WRITE); in bpf_xattr_write_permission()
221 ret = __vfs_setxattr(&nop_mnt_idmap, dentry, inode, name__str, in bpf_set_dentry_xattr_locked()
259 ret = __vfs_removexattr(&nop_mnt_idmap, dentry, name__str); in bpf_remove_dentry_xattr_locked()
/linux/fs/jfs/
H A Dfile.c97 rc = setattr_prepare(&nop_mnt_idmap, dentry, iattr); in jfs_setattr()
101 if (is_quota_modification(&nop_mnt_idmap, inode, iattr)) { in jfs_setattr()
108 rc = dquot_transfer(&nop_mnt_idmap, inode, iattr); in jfs_setattr()
125 setattr_copy(&nop_mnt_idmap, inode, iattr); in jfs_setattr()
129 rc = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode); in jfs_setattr()
/linux/fs/ecryptfs/
H A Dinode.c150 rc = vfs_unlink(&nop_mnt_idmap, lower_dir, lower_dentry, in ecryptfs_do_unlink()
191 rc = vfs_create(&nop_mnt_idmap, lower_dir, in ecryptfs_do_create()
202 vfs_unlink(&nop_mnt_idmap, lower_dir, lower_dentry, NULL); in ecryptfs_do_create()
447 rc = vfs_link(lower_old_dentry, &nop_mnt_idmap, lower_dir, in ecryptfs_link()
491 rc = vfs_symlink(&nop_mnt_idmap, lower_dir, lower_dentry, in ecryptfs_symlink()
519 lower_dentry = vfs_mkdir(&nop_mnt_idmap, lower_dir, in ecryptfs_mkdir()
552 rc = vfs_rmdir(&nop_mnt_idmap, lower_dir, lower_dentry); in ecryptfs_rmdir()
576 rc = vfs_mknod(&nop_mnt_idmap, lower_dir, in ecryptfs_mknod()
637 rd.old_mnt_idmap = &nop_mnt_idmap; in ecryptfs_rename()
640 rd.new_mnt_idmap = &nop_mnt_idmap; in ecryptfs_rename()
[all...]
/linux/fs/nfsd/
H A Dvfs.c270 dentry = lookup_one_unlocked(&nop_mnt_idmap, in nfsd_lookup_dentry()
413 setattr_should_drop_sgid(&nop_mnt_idmap, inode); in nfsd_sanitize_attrs()
456 host_err = notify_change(&nop_mnt_idmap, dentry, &size_attr, NULL); in __nfsd_setattr()
482 return notify_change(&nop_mnt_idmap, dentry, iap, NULL); in __nfsd_setattr()
598 attr->na_aclerr = set_posix_acl(&nop_mnt_idmap, in nfsd_setattr()
603 attr->na_aclerr = set_posix_acl(&nop_mnt_idmap, in nfsd_setattr()
649 if (vfs_getxattr(&nop_mnt_idmap, dentry, NFSD_JUNCTION_XATTR_NAME, in nfsd4_is_junction()
1534 host_err = vfs_create(&nop_mnt_idmap, dirp, dchild, in nfsd_create_locked()
1540 dchild = vfs_mkdir(&nop_mnt_idmap, dirp, dchild, iap->ia_mode); in nfsd_create_locked()
1555 host_err = vfs_mknod(&nop_mnt_idmap, dir in nfsd_create_locked()
[all...]
H A Dnfs3acl.c108 error = set_posix_acl(&nop_mnt_idmap, fh->fh_dentry, ACL_TYPE_ACCESS, in nfsd3_proc_setacl()
112 error = set_posix_acl(&nop_mnt_idmap, fh->fh_dentry, ACL_TYPE_DEFAULT, in nfsd3_proc_setacl()
/linux/fs/minix/
H A Dfile.c31 error = setattr_prepare(&nop_mnt_idmap, dentry, attr); in minix_setattr()
45 setattr_copy(&nop_mnt_idmap, inode, attr); in minix_setattr()
/linux/fs/cachefiles/
H A Dxattr.c70 ret = vfs_setxattr(&nop_mnt_idmap, dentry, in cachefiles_set_object_xattr()
119 xlen = vfs_getxattr(&nop_mnt_idmap, dentry, cachefiles_xattr_cache, buf, tlen); in cachefiles_check_auxdata()
170 ret = vfs_removexattr(&nop_mnt_idmap, dentry, in cachefiles_remove_object_xattr()
233 ret = vfs_setxattr(&nop_mnt_idmap, dentry, in cachefiles_set_volume_xattr()
279 xlen = vfs_getxattr(&nop_mnt_idmap, dentry, cachefiles_xattr_cache, buf, len); in cachefiles_check_volume_xattr()
/linux/drivers/base/
H A Ddevtmpfs.c183 dentry = vfs_mkdir(&nop_mnt_idmap, d_inode(path.dentry), dentry, mode); in dev_mkdir()
233 err = vfs_mknod(&nop_mnt_idmap, d_inode(path.dentry), dentry, mode, in handle_create()
243 notify_change(&nop_mnt_idmap, dentry, &newattrs, NULL); in handle_create()
263 err = vfs_rmdir(&nop_mnt_idmap, d_inode(parent.dentry), in dev_rmdir()
345 notify_change(&nop_mnt_idmap, dentry, &newattrs, NULL); in handle_remove()
347 err = vfs_unlink(&nop_mnt_idmap, d_inode(parent.dentry), in handle_remove()
/linux/security/integrity/evm/
H A Devm_crypto.c274 size = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, xattr->name, in evm_calc_hmac_or_hash()
283 user_space_size = vfs_getxattr(&nop_mnt_idmap, dentry, in evm_calc_hmac_or_hash()
343 rc = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, XATTR_NAME_EVM, in evm_is_immutable()
389 rc = __vfs_setxattr_noperm(&nop_mnt_idmap, dentry, in evm_update_evmxattr()
394 rc = __vfs_removexattr(&nop_mnt_idmap, dentry, XATTR_NAME_EVM); in evm_update_evmxattr()
/linux/fs/ext2/
H A Dioctl.c69 if (!inode_owner_or_capable(&nop_mnt_idmap, inode)) in ext2_ioctl()
102 if (!inode_owner_or_capable(&nop_mnt_idmap, inode)) in ext2_ioctl()
H A Dinode.c1643 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in ext2_getattr()
1653 error = setattr_prepare(&nop_mnt_idmap, dentry, iattr); in ext2_setattr()
1657 if (is_quota_modification(&nop_mnt_idmap, inode, iattr)) { in ext2_setattr()
1662 if (i_uid_needs_update(&nop_mnt_idmap, iattr, inode) || in ext2_setattr()
1663 i_gid_needs_update(&nop_mnt_idmap, iattr, inode)) { in ext2_setattr()
1664 error = dquot_transfer(&nop_mnt_idmap, inode, iattr); in ext2_setattr()
1673 setattr_copy(&nop_mnt_idmap, inode, iattr); in ext2_setattr()
1675 error = posix_acl_chmod(&nop_mnt_idmap, dentry, inode->i_mode); in ext2_setattr()
/linux/fs/ramfs/
H A Dinode.c64 inode_init_owner(&nop_mnt_idmap, inode, dir, mode); in ramfs_get_inode()
125 int retval = ramfs_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFDIR, 0); in ramfs_mkdir()
134 return ramfs_mknod(&nop_mnt_idmap, dir, dentry, mode | S_IFREG, 0); in ramfs_create()
H A Dfile-nommu.c169 ret = setattr_prepare(&nop_mnt_idmap, dentry, ia); in ramfs_nommu_setattr()
189 setattr_copy(&nop_mnt_idmap, inode, ia); in ramfs_nommu_setattr()
/linux/fs/kernfs/
H A Dinode.c124 error = setattr_prepare(&nop_mnt_idmap, dentry, iattr); in kernfs_iop_setattr()
133 setattr_copy(&nop_mnt_idmap, inode, iattr); in kernfs_iop_setattr()
195 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in kernfs_iop_getattr()
291 ret = generic_permission(&nop_mnt_idmap, inode, mask); in kernfs_iop_permission()
/linux/fs/9p/
H A Dacl.c198 if (!inode_owner_or_capable(&nop_mnt_idmap, inode)) { in v9fs_iop_set_acl()
209 retval = posix_acl_update_mode(&nop_mnt_idmap, inode, in v9fs_iop_set_acl()
228 v9fs_vfs_setattr_dotl(&nop_mnt_idmap, dentry, &iattr); in v9fs_iop_set_acl()
/linux/include/linux/
H A Dmnt_idmapping.h11 extern struct mnt_idmap nop_mnt_idmap;
30 return idmap != &nop_mnt_idmap && idmap != &invalid_mnt_idmap; in is_valid_mnt_idmap()
/linux/fs/ocfs2/dlmfs/
H A Ddlmfs.c198 error = setattr_prepare(&nop_mnt_idmap, dentry, attr); in dlmfs_file_setattr()
202 setattr_copy(&nop_mnt_idmap, inode, attr); in dlmfs_file_setattr()
339 inode_init_owner(&nop_mnt_idmap, inode, NULL, mode); in dlmfs_get_root_inode()
362 inode_init_owner(&nop_mnt_idmap, inode, parent, mode); in dlmfs_get_inode()
/linux/fs/gfs2/
H A Dinode.c335 error = gfs2_permission(&nop_mnt_idmap, dir, MAY_EXEC); in gfs2_lookupi()
365 error = gfs2_permission(&nop_mnt_idmap, &dip->i_inode, in create_ok()
1058 error = gfs2_permission(&nop_mnt_idmap, dir, MAY_WRITE | MAY_EXEC); in gfs2_link()
1173 error = gfs2_permission(&nop_mnt_idmap, &dip->i_inode, in gfs2_unlink_ok()
1600 error = gfs2_permission(&nop_mnt_idmap, ndir, in gfs2_rename()
1637 error = gfs2_permission(&nop_mnt_idmap, d_inode(odentry), in gfs2_rename()
1801 error = gfs2_permission(&nop_mnt_idmap, odentry->d_inode, in gfs2_exchange()
1807 error = gfs2_permission(&nop_mnt_idmap, ndentry->d_inode, in gfs2_exchange()
1976 error = generic_permission(&nop_mnt_idmap, inode, mask); in gfs2_permission()
1985 setattr_copy(&nop_mnt_idmap, inod in __gfs2_setattr_simple()
[all...]
/linux/security/integrity/ima/
H A Dima_asymmetric_keys.c63 process_buffer_measurement(&nop_mnt_idmap, NULL, payload, payload_len, in ima_post_key_create_or_update()
H A Dima_queue_keys.c162 process_buffer_measurement(&nop_mnt_idmap, NULL, in ima_process_queued_keys()
/linux/fs/udf/
H A Dfile.c220 error = setattr_prepare(&nop_mnt_idmap, dentry, attr); in udf_setattr()
245 setattr_copy(&nop_mnt_idmap, inode, attr); in udf_setattr()
/linux/fs/hfsplus/
H A Dinode.c252 error = setattr_prepare(&nop_mnt_idmap, dentry, attr); in hfsplus_setattr()
270 setattr_copy(&nop_mnt_idmap, inode, attr); in hfsplus_setattr()
298 generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); in hfsplus_getattr()
391 inode_init_owner(&nop_mnt_idmap, inode, dir, mode); in hfsplus_new_inode()
/linux/fs/overlayfs/
H A Dinode.c30 err = setattr_prepare(&nop_mnt_idmap, dentry, attr); in ovl_setattr()
308 err = generic_permission(&nop_mnt_idmap, inode, mask); in ovl_permission()
549 if (!inode_owner_or_capable(&nop_mnt_idmap, inode)) in ovl_set_acl()
558 !capable_wrt_inode_uidgid(&nop_mnt_idmap, inode, CAP_FSETID)) { in ovl_set_acl()
561 err = ovl_setattr(&nop_mnt_idmap, dentry, &iattr); in ovl_set_acl()
/linux/fs/orangefs/
H A Dacl.c139 error = posix_acl_update_mode(&nop_mnt_idmap, inode, in orangefs_set_acl()

12345