/openbmc/linux/fs/configfs/ |
H A D | symlink.c | 199 ret = inode_permission(&nop_mnt_idmap, dir, in configfs_symlink()
|
/openbmc/linux/fs/ |
H A D | namei.c | 504 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() 2688 return inode_permission(idmap, base->d_inode, MAY_EXEC); in lookup_one_common() 2968 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_delete() 3012 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in may_create() 3260 error = inode_permission(idmap, inode, MAY_OPEN | acc_mode); in may_open() 3317 error = inode_permission(idmap, dir->dentry->d_inode, in may_o_create() [all …]
|
H A D | attr.c | 345 error = inode_permission(idmap, inode, MAY_WRITE); in may_setattr()
|
H A D | remap_range.c | 434 if (!inode_permission(idmap, inode, MAY_WRITE)) in allow_file_dedupe()
|
H A D | open.c | 90 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()
|
H A D | exec.c | 1424 if (inode_permission(idmap, inode, MAY_READ) < 0) { in would_dump() 1631 err = inode_permission(idmap, inode, MAY_EXEC); in bprm_fill_uid()
|
H A D | xattr.c | 156 return inode_permission(idmap, inode, mask); in xattr_permission()
|
/openbmc/linux/fs/smb/server/ |
H A D | vfs.c | 148 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()
|
H A D | smb2pdu.c | 3236 rc = inode_permission(idmap, in smb2_open() 3244 rc = inode_permission(idmap, in smb2_open() 4321 inode_permission(file_mnt_idmap(dir_fp->filp), in smb2_query_dir()
|
/openbmc/linux/fs/nfsd/ |
H A D | nfsfh.c | 43 err = inode_permission(&nop_mnt_idmap, in nfsd_acceptable()
|
H A D | vfs.c | 2469 err = inode_permission(&nop_mnt_idmap, inode, in nfsd_permission() 2476 err = inode_permission(&nop_mnt_idmap, inode, MAY_EXEC); in nfsd_permission()
|
/openbmc/linux/kernel/bpf/ |
H A D | inode.c | 559 int ret = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in __get_prog_inode()
|
/openbmc/linux/fs/overlayfs/ |
H A D | file.c | 56 err = inode_permission(real_idmap, realinode, MAY_OPEN | acc_mode); in ovl_open_realfile()
|
H A D | util.c | 601 err = inode_permission(real_idmap, inode, acc_mode | MAY_OPEN); in ovl_path_open()
|
H A D | inode.c | 320 err = inode_permission(mnt_idmap(realpath.mnt), realinode, mask); in ovl_permission()
|
/openbmc/linux/fs/btrfs/ |
H A D | ioctl.c | 937 error = inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_delete() 970 return inode_permission(idmap, dir, MAY_WRITE | MAY_EXEC); in btrfs_may_create() 2006 ret = inode_permission(idmap, temp_inode, in btrfs_search_path_in_tree_user() 2556 err = inode_permission(idmap, inode, MAY_WRITE | MAY_EXEC); in btrfs_ioctl_snap_destroy() 2625 inode_permission(&nop_mnt_idmap, inode, MAY_WRITE)) { in btrfs_ioctl_defrag()
|
/openbmc/linux/include/linux/ |
H A D | fs.h | 2675 int inode_permission(struct mnt_idmap *, struct inode *, int); 2679 return inode_permission(file_mnt_idmap(file), in file_permission() 2684 return inode_permission(mnt_idmap(path->mnt), in path_permission()
|
H A D | lsm_hook_defs.h | 137 LSM_HOOK(int, 0, inode_permission, struct inode *inode, int mask)
|
/openbmc/linux/fs/ecryptfs/ |
H A D | inode.c | 878 return inode_permission(&nop_mnt_idmap, in ecryptfs_permission()
|
/openbmc/linux/ipc/ |
H A D | mqueue.c | 891 return inode_permission(&nop_mnt_idmap, d_inode(dentry), acc); in prepare_open()
|
/openbmc/linux/fs/ocfs2/ |
H A D | refcounttree.c | 4342 return inode_permission(&nop_mnt_idmap, dir, MAY_WRITE | MAY_EXEC); in ocfs2_may_create() 4396 error = inode_permission(&nop_mnt_idmap, inode, MAY_READ); in ocfs2_vfs_reflink()
|
/openbmc/linux/drivers/block/ |
H A D | ublk_drv.c | 2765 err = inode_permission(&nop_mnt_idmap, in ublk_char_dev_permission()
|
/openbmc/linux/security/ |
H A D | security.c | 2111 return call_int_hook(inode_permission, 0, inode, mask); in security_inode_permission()
|
/openbmc/linux/security/smack/ |
H A D | smack_lsm.c | 4977 LSM_HOOK_INIT(inode_permission, smack_inode_permission),
|
/openbmc/linux/kernel/cgroup/ |
H A D | cgroup.c | 5074 ret = inode_permission(&nop_mnt_idmap, inode, MAY_WRITE); in cgroup_may_write()
|