Lines Matching refs:path
324 const struct path *const path, in landlock_append_fs_rule() argument
333 if (!d_is_dir(path->dentry) && in landlock_append_fs_rule()
342 id.key.object = get_inode_object(d_backing_inode(path->dentry)); in landlock_append_fs_rule()
756 const struct path *const path, in is_access_to_paths_allowed() argument
768 struct path walker_path; in is_access_to_paths_allowed()
778 if (WARN_ON_ONCE(!path)) in is_access_to_paths_allowed()
781 if (is_nouser_or_private(path->dentry)) in is_access_to_paths_allowed()
833 walker_path = *path; in is_access_to_paths_allowed()
933 log_request_parent1->audit.u.path = *path; in is_access_to_paths_allowed()
943 log_request_parent2->audit.u.path = *path; in is_access_to_paths_allowed()
952 static int current_check_access_path(const struct path *const path, in current_check_access_path() argument
969 if (is_access_to_paths_allowed(subject->domain, path, access_request, in current_check_access_path()
1131 const struct path *const new_dir, in current_check_refer_path()
1139 struct path mnt_dir; in current_check_refer_path()
1226 request1.audit.u.path.dentry = old_parent; in current_check_refer_path()
1230 request2.audit.u.path.dentry = new_dir->dentry; in current_check_refer_path()
1378 size_t handle_layer, const struct path *const path) in log_fs_change_topology_path() argument
1384 .u.path = *path, in log_fs_change_topology_path()
1423 const struct path *const path, const char *const type, in hook_sb_mount() argument
1434 log_fs_change_topology_path(subject, handle_layer, path); in hook_sb_mount()
1438 static int hook_move_mount(const struct path *const from_path, in hook_move_mount()
1439 const struct path *const to_path) in hook_move_mount()
1493 static int hook_sb_pivotroot(const struct path *const old_path, in hook_sb_pivotroot()
1494 const struct path *const new_path) in hook_sb_pivotroot()
1511 const struct path *const new_dir, in hook_path_link()
1518 static int hook_path_rename(const struct path *const old_dir, in hook_path_rename()
1520 const struct path *const new_dir, in hook_path_rename()
1529 static int hook_path_mkdir(const struct path *const dir, in hook_path_mkdir()
1535 static int hook_path_mknod(const struct path *const dir, in hook_path_mknod()
1542 static int hook_path_symlink(const struct path *const dir, in hook_path_symlink()
1549 static int hook_path_unlink(const struct path *const dir, in hook_path_unlink()
1555 static int hook_path_rmdir(const struct path *const dir, in hook_path_rmdir()
1561 static int hook_path_truncate(const struct path *const path) in hook_path_truncate() argument
1563 return current_check_access_path(path, LANDLOCK_ACCESS_FS_TRUNCATE); in hook_path_truncate()
1747 .path = file->f_path, in hook_file_ioctl_common()