Lines Matching refs:dir

719 	const struct dentry *const mnt_root, struct dentry *dir,  in collect_domain_accesses()  argument
725 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in collect_domain_accesses()
727 if (is_nouser_or_private(dir)) in collect_domain_accesses()
733 dget(dir); in collect_domain_accesses()
738 if (unmask_layers(find_rule(domain, dir), access_dom, in collect_domain_accesses()
749 if (dir == mnt_root || WARN_ON_ONCE(IS_ROOT(dir))) in collect_domain_accesses()
752 parent_dentry = dget_parent(dir); in collect_domain_accesses()
753 dput(dir); in collect_domain_accesses()
754 dir = parent_dentry; in collect_domain_accesses()
756 dput(dir); in collect_domain_accesses()
1130 static int hook_path_mkdir(const struct path *const dir, in hook_path_mkdir() argument
1133 return current_check_access_path(dir, LANDLOCK_ACCESS_FS_MAKE_DIR); in hook_path_mkdir()
1136 static int hook_path_mknod(const struct path *const dir, in hook_path_mknod() argument
1145 return check_access_path(dom, dir, get_mode_access(mode)); in hook_path_mknod()
1148 static int hook_path_symlink(const struct path *const dir, in hook_path_symlink() argument
1152 return current_check_access_path(dir, LANDLOCK_ACCESS_FS_MAKE_SYM); in hook_path_symlink()
1155 static int hook_path_unlink(const struct path *const dir, in hook_path_unlink() argument
1158 return current_check_access_path(dir, LANDLOCK_ACCESS_FS_REMOVE_FILE); in hook_path_unlink()
1161 static int hook_path_rmdir(const struct path *const dir, in hook_path_rmdir() argument
1164 return current_check_access_path(dir, LANDLOCK_ACCESS_FS_REMOVE_DIR); in hook_path_rmdir()