Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/
Dbpf_fs_kfuncs.c128 ret = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in bpf_get_dentry_xattr()
Dnamei.c510 int inode_permission(struct mnt_idmap *idmap, in inode_permission() function
545 EXPORT_SYMBOL(inode_permission);
1168 if (inode_permission(idmap, inode, MAY_READ | MAY_WRITE)) in safe_hardlink_source()
1760 err = inode_permission(idmap, nd->inode, mask | MAY_EXEC); in may_lookup()
1775 return inode_permission(idmap, nd->inode, MAY_EXEC); in may_lookup()
2795 return inode_permission(idmap, base->d_inode, MAY_EXEC); in lookup_one_common()
3075 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_delete()
3119 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_create()
3364 error = inode_permission(idmap, inode, MAY_OPEN | acc_mode); in may_open()
3421 error = inode_permission(idmap, dir->dentry->d_inode, in may_o_create()
[all …]
Dattr.c341 error = inode_permission(idmap, inode, MAY_WRITE); in may_setattr()
Dremap_range.c427 if (!inode_permission(idmap, inode, MAY_WRITE)) in may_dedupe_file()
Dopen.c89 error = inode_permission(idmap, inode, MAY_WRITE); in vfs_truncate()
509 res = inode_permission(mnt_idmap(path.mnt), inode, mode | MAY_ACCESS); in do_faccessat()
Dexec.c1409 if (inode_permission(idmap, inode, MAY_READ) < 0) { in would_dump()
1641 err = inode_permission(idmap, inode, MAY_EXEC); in bprm_fill_uid()
Dxattr.c155 return inode_permission(idmap, inode, mask); in xattr_permission()
/linux-6.12.1/fs/configfs/
Dsymlink.c199 ret = inode_permission(&nop_mnt_idmap, dir, in configfs_symlink()
/linux-6.12.1/fs/smb/server/
Dvfs.c148 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
154 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_READ)) in ksmbd_vfs_query_maximal_access()
157 if (!inode_permission(idmap, d_inode(dentry), MAY_OPEN | MAY_EXEC)) in ksmbd_vfs_query_maximal_access()
160 if (!inode_permission(idmap, d_inode(dentry->d_parent), MAY_EXEC | MAY_WRITE)) in ksmbd_vfs_query_maximal_access()
Dsmb2pdu.c3234 rc = inode_permission(idmap, in smb2_open()
3242 rc = inode_permission(idmap, in smb2_open()
4320 inode_permission(file_mnt_idmap(dir_fp->filp), in smb2_query_dir()
/linux-6.12.1/fs/bcachefs/
Dfs-ioctl.c456 error = inode_permission(file_mnt_idmap(filp), in bch2_ioctl_subvolume_create()
/linux-6.12.1/fs/overlayfs/
Dfile.c44 err = inode_permission(real_idmap, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
Dinode.c319 err = inode_permission(mnt_idmap(realpath.mnt), realinode, mask); in ovl_permission()
Dutil.c661 err = inode_permission(real_idmap, inode, acc_mode | MAY_OPEN); in ovl_path_open()
/linux-6.12.1/fs/nfsd/
Dnfsfh.c43 err = inode_permission(&nop_mnt_idmap, in nfsd_acceptable()
Dvfs.c2566 err = inode_permission(&nop_mnt_idmap, inode, in nfsd_permission()
2573 err = inode_permission(&nop_mnt_idmap, inode, MAY_EXEC); in nfsd_permission()
/linux-6.12.1/fs/btrfs/
Dioctl.c946 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_delete()
979 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_create()
2012 ret = inode_permission(idmap, temp_inode, in btrfs_search_path_in_tree_user()
2567 ret = inode_permission(idmap, inode, MAY_WRITE | MAY_EXEC); in btrfs_ioctl_snap_destroy()
2636 inode_permission(&nop_mnt_idmap, inode, MAY_WRITE)) { in btrfs_ioctl_defrag()
/linux-6.12.1/include/linux/
Dfs.h2895 int inode_permission(struct mnt_idmap *, struct inode *, int);
2899 return inode_permission(file_mnt_idmap(file), in file_permission()
2904 return inode_permission(mnt_idmap(path->mnt), in path_permission()
Dlsm_hook_defs.h142 LSM_HOOK(int, 0, inode_permission, struct inode *inode, int mask)
/linux-6.12.1/kernel/bpf/
Dinode.c559 int ret = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in __get_prog_inode()
/linux-6.12.1/fs/ecryptfs/
Dinode.c880 return inode_permission(&nop_mnt_idmap, in ecryptfs_permission()
/linux-6.12.1/ipc/
Dmqueue.c891 return inode_permission(&nop_mnt_idmap, d_inode(dentry), acc); in prepare_open()
/linux-6.12.1/fs/ocfs2/
Drefcounttree.c4335 return inode_permission(&nop_mnt_idmap, dir, MAY_WRITE | MAY_EXEC); in ocfs2_may_create()
4389 error = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in ocfs2_vfs_reflink()
/linux-6.12.1/drivers/block/
Dublk_drv.c2814 err = inode_permission(&nop_mnt_idmap, in ublk_char_dev_permission()
/linux-6.12.1/security/
Dsecurity.c2320 return call_int_hook(inode_permission, inode, mask); in security_inode_permission()

12