Home
last modified time | relevance | path

Searched refs:inode_permission (Results 1 – 18 of 18) sorted by relevance

/fs/
Dnamei.c502 int inode_permission(struct user_namespace *mnt_userns, in inode_permission() function
537 EXPORT_SYMBOL(inode_permission);
1158 if (inode_permission(mnt_userns, inode, MAY_READ | MAY_WRITE)) in safe_hardlink_source()
1715 int err = inode_permission(mnt_userns, nd->inode, MAY_EXEC|MAY_NOT_BLOCK); in may_lookup()
1719 return inode_permission(mnt_userns, nd->inode, MAY_EXEC); in may_lookup()
2685 return inode_permission(mnt_userns, base->d_inode, MAY_EXEC); in lookup_one_common()
2965 error = inode_permission(mnt_userns, dir, MAY_WRITE | MAY_EXEC); in may_delete()
3009 return inode_permission(mnt_userns, dir, MAY_WRITE | MAY_EXEC); in may_create()
3255 error = inode_permission(mnt_userns, inode, MAY_OPEN | acc_mode); in may_open()
3312 error = inode_permission(mnt_userns, dir->dentry->d_inode, in may_o_create()
[all …]
Dattr.c345 error = inode_permission(mnt_userns, inode, MAY_WRITE); in may_setattr()
Dremap_range.c434 if (!inode_permission(mnt_userns, inode, MAY_WRITE)) in allow_file_dedupe()
Dopen.c90 error = inode_permission(mnt_userns, inode, MAY_WRITE); in vfs_truncate()
463 res = inode_permission(mnt_user_ns(path.mnt), inode, mode | MAY_ACCESS); in do_faccessat()
Dxattr.c138 return inode_permission(mnt_userns, inode, mask); in xattr_permission()
Dexec.c1425 if (inode_permission(mnt_userns, inode, MAY_READ) < 0) { in would_dump()
/fs/configfs/
Dsymlink.c199 ret = inode_permission(&init_user_ns, dir, in configfs_symlink()
/fs/smb/server/
Dvfs.c145 if (!inode_permission(user_ns, d_inode(dentry), MAY_OPEN | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
151 if (!inode_permission(user_ns, d_inode(dentry), MAY_OPEN | MAY_READ)) in ksmbd_vfs_query_maximal_access()
154 if (!inode_permission(user_ns, d_inode(dentry), MAY_OPEN | MAY_EXEC)) in ksmbd_vfs_query_maximal_access()
157 if (!inode_permission(user_ns, d_inode(dentry->d_parent), MAY_EXEC | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
Dsmb2pdu.c3029 rc = inode_permission(user_ns, in smb2_open()
3037 rc = inode_permission(user_ns, in smb2_open()
4061 inode_permission(file_mnt_user_ns(dir_fp->filp), in smb2_query_dir()
/fs/nfsd/
Dnfsfh.c43 err = inode_permission(&init_user_ns, in nfsd_acceptable()
Dvfs.c2338 err = inode_permission(&init_user_ns, inode, in nfsd_permission()
2345 err = inode_permission(&init_user_ns, inode, MAY_EXEC); in nfsd_permission()
/fs/overlayfs/
Dfile.c58 err = inode_permission(real_mnt_userns, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
Dutil.c540 err = inode_permission(real_mnt_userns, inode, acc_mode | MAY_OPEN); in ovl_path_open()
Dinode.c310 err = inode_permission(mnt_user_ns(realpath.mnt), realinode, mask); in ovl_permission()
/fs/btrfs/
Dioctl.c906 error = inode_permission(mnt_userns, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_delete()
939 return inode_permission(mnt_userns, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_create()
2877 ret = inode_permission(mnt_userns, temp_inode, in btrfs_search_path_in_tree_user()
3427 err = inode_permission(mnt_userns, inode, MAY_WRITE | MAY_EXEC); in btrfs_ioctl_snap_destroy()
3496 inode_permission(&init_user_ns, inode, MAY_WRITE)) { in btrfs_ioctl_defrag()
/fs/ecryptfs/
Dinode.c876 return inode_permission(&init_user_ns, in ecryptfs_permission()
/fs/fuse/
Dbacking.c109 retval = inode_permission(&init_user_ns, in fuse_open_backing()
2445 return inode_permission(&init_user_ns, fi->backing_inode, fai->mask); in fuse_access_backing()
/fs/ocfs2/
Drefcounttree.c4319 return inode_permission(&init_user_ns, dir, MAY_WRITE | MAY_EXEC); in ocfs2_may_create()
4373 error = inode_permission(&init_user_ns, inode, MAY_READ); in ocfs2_vfs_reflink()