Lines Matching refs:dentry
162 if (!d_is_dir(path->dentry) && in landlock_append_fs_rule()
170 object = get_inode_object(d_backing_inode(path->dentry)); in landlock_append_fs_rule()
193 const struct dentry *const dentry) in find_rule() argument
199 if (d_is_negative(dentry)) in find_rule()
202 inode = d_backing_inode(dentry); in find_rule()
282 if ((path->dentry->d_sb->s_flags & SB_NOUSER) || in check_access_path()
283 (d_is_positive(path->dentry) && in check_access_path()
284 unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))) in check_access_path()
313 struct dentry *parent_dentry; in check_access_path()
315 allowed = unmask_layers(find_rule(domain, walker_path.dentry), in check_access_path()
322 if (walker_path.dentry == walker_path.mnt->mnt_root) { in check_access_path()
335 if (unlikely(IS_ROOT(walker_path.dentry))) { in check_access_path()
344 parent_dentry = dget_parent(walker_path.dentry); in check_access_path()
345 dput(walker_path.dentry); in check_access_path()
346 walker_path.dentry = parent_dentry; in check_access_path()
589 static int hook_path_link(struct dentry *const old_dentry, in hook_path_link()
591 struct dentry *const new_dentry) in hook_path_link()
599 if (old_dentry->d_parent != new_dir->dentry) in hook_path_link()
609 static inline access_mask_t maybe_remove(const struct dentry *const dentry) in maybe_remove() argument
611 if (d_is_negative(dentry)) in maybe_remove()
613 return d_is_dir(dentry) ? LANDLOCK_ACCESS_FS_REMOVE_DIR : in maybe_remove()
618 struct dentry *const old_dentry, in hook_path_rename()
620 struct dentry *const new_dentry) in hook_path_rename()
628 if (old_dir->dentry != new_dir->dentry) in hook_path_rename()
641 struct dentry *const dentry, const umode_t mode) in hook_path_mkdir() argument
647 struct dentry *const dentry, const umode_t mode, in hook_path_mknod() argument
659 struct dentry *const dentry, in hook_path_symlink() argument
666 struct dentry *const dentry) in hook_path_unlink() argument
672 struct dentry *const dentry) in hook_path_rmdir() argument