Home
last modified time | relevance | path

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

12

/linux-6.6.21/fs/configfs/
Dsymlink.c199 ret = inode_permission(&nop_mnt_idmap, dir, in configfs_symlink()
/linux-6.6.21/fs/
Dnamei.c504 int inode_permission(struct mnt_idmap *idmap, in inode_permission() function
539 EXPORT_SYMBOL(inode_permission);
1163 if (inode_permission(idmap, inode, MAY_READ | MAY_WRITE)) in safe_hardlink_source()
1720 int err = inode_permission(idmap, nd->inode, MAY_EXEC|MAY_NOT_BLOCK); in may_lookup()
1724 return inode_permission(idmap, nd->inode, MAY_EXEC); in may_lookup()
2690 return inode_permission(idmap, base->d_inode, MAY_EXEC); in lookup_one_common()
2970 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_delete()
3014 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_create()
3262 error = inode_permission(idmap, inode, MAY_OPEN | acc_mode); in may_open()
3319 error = inode_permission(idmap, dir->dentry->d_inode, in may_o_create()
[all …]
Dattr.c345 error = inode_permission(idmap, inode, MAY_WRITE); in may_setattr()
Dremap_range.c434 if (!inode_permission(idmap, inode, MAY_WRITE)) in allow_file_dedupe()
Dopen.c90 error = inode_permission(idmap, inode, MAY_WRITE); in vfs_truncate()
499 res = inode_permission(mnt_idmap(path.mnt), inode, mode | MAY_ACCESS); in do_faccessat()
Dxattr.c156 return inode_permission(idmap, inode, mask); in xattr_permission()
Dexec.c1425 if (inode_permission(idmap, inode, MAY_READ) < 0) { in would_dump()
/linux-6.6.21/fs/smb/server/
Dvfs.c144 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
150 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_READ)) in ksmbd_vfs_query_maximal_access()
153 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_EXEC)) in ksmbd_vfs_query_maximal_access()
156 if (!inode_permission(idmap, d_inode(dentry->d_parent), MAY_EXEC | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
Dsmb2pdu.c3031 rc = inode_permission(idmap, in smb2_open()
3039 rc = inode_permission(idmap, in smb2_open()
4063 inode_permission(file_mnt_idmap(dir_fp->filp), in smb2_query_dir()
/linux-6.6.21/fs/nfsd/
Dnfsfh.c43 err = inode_permission(&nop_mnt_idmap, in nfsd_acceptable()
Dvfs.c2466 err = inode_permission(&nop_mnt_idmap, inode, in nfsd_permission()
2473 err = inode_permission(&nop_mnt_idmap, inode, MAY_EXEC); in nfsd_permission()
/linux-6.6.21/kernel/bpf/
Dinode.c559 int ret = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in __get_prog_inode()
/linux-6.6.21/fs/overlayfs/
Dfile.c56 err = inode_permission(real_idmap, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
Dutil.c598 err = inode_permission(real_idmap, inode, acc_mode | MAY_OPEN); in ovl_path_open()
Dinode.c320 err = inode_permission(mnt_idmap(realpath.mnt), realinode, mask); in ovl_permission()
/linux-6.6.21/fs/btrfs/
Dioctl.c916 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_delete()
949 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_create()
1985 ret = inode_permission(idmap, temp_inode, in btrfs_search_path_in_tree_user()
2535 err = inode_permission(idmap, inode, MAY_WRITE | MAY_EXEC); in btrfs_ioctl_snap_destroy()
2604 inode_permission(&nop_mnt_idmap, inode, MAY_WRITE)) { in btrfs_ioctl_defrag()
/linux-6.6.21/include/linux/
Dfs.h2669 int inode_permission(struct mnt_idmap *, struct inode *, int);
2673 return inode_permission(file_mnt_idmap(file), in file_permission()
2678 return inode_permission(mnt_idmap(path->mnt), in path_permission()
Dlsm_hook_defs.h137 LSM_HOOK(int, 0, inode_permission, struct inode *inode, int mask)
/linux-6.6.21/fs/ecryptfs/
Dinode.c878 return inode_permission(&nop_mnt_idmap, in ecryptfs_permission()
/linux-6.6.21/ipc/
Dmqueue.c891 return inode_permission(&nop_mnt_idmap, d_inode(dentry), acc); in prepare_open()
/linux-6.6.21/fs/ocfs2/
Drefcounttree.c4320 return inode_permission(&nop_mnt_idmap, dir, MAY_WRITE | MAY_EXEC); in ocfs2_may_create()
4374 error = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in ocfs2_vfs_reflink()
/linux-6.6.21/security/
Dsecurity.c2111 return call_int_hook(inode_permission, 0, inode, mask); in security_inode_permission()
/linux-6.6.21/drivers/block/
Dublk_drv.c2715 err = inode_permission(&nop_mnt_idmap, in ublk_char_dev_permission()
/linux-6.6.21/security/smack/
Dsmack_lsm.c4959 LSM_HOOK_INIT(inode_permission, smack_inode_permission),
/linux-6.6.21/kernel/cgroup/
Dcgroup.c5065 ret = inode_permission(&nop_mnt_idmap, inode, MAY_WRITE); in cgroup_may_write()

12