Lines Matching refs:path
19 struct path path; in init_mount() local
22 ret = kern_path(dir_name, LOOKUP_FOLLOW, &path); in init_mount()
25 ret = path_mount(dev_name, &path, type_page, flags, data_page); in init_mount()
26 path_put(&path); in init_mount()
33 struct path path; in init_umount() local
38 ret = kern_path(name, lookup_flags, &path); in init_umount()
41 return path_umount(&path, flags); in init_umount()
46 struct path path; in init_chdir() local
49 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chdir()
52 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in init_chdir()
54 set_fs_pwd(current->fs, &path); in init_chdir()
55 path_put(&path); in init_chdir()
61 struct path path; in init_chroot() local
64 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chroot()
67 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in init_chroot()
73 error = security_path_chroot(&path); in init_chroot()
76 set_fs_root(current->fs, &path); in init_chroot()
78 path_put(&path); in init_chroot()
85 struct path path; in init_chown() local
88 error = kern_path(filename, lookup_flags, &path); in init_chown()
91 error = mnt_want_write(path.mnt); in init_chown()
93 error = chown_common(&path, user, group); in init_chown()
94 mnt_drop_write(path.mnt); in init_chown()
96 path_put(&path); in init_chown()
102 struct path path; in init_chmod() local
105 error = kern_path(filename, LOOKUP_FOLLOW, &path); in init_chmod()
108 error = chmod_common(&path, mode); in init_chmod()
109 path_put(&path); in init_chmod()
115 struct path path; in init_eaccess() local
118 error = kern_path(filename, LOOKUP_FOLLOW, &path); in init_eaccess()
121 error = path_permission(&path, MAY_ACCESS); in init_eaccess()
122 path_put(&path); in init_eaccess()
129 struct path path; in init_stat() local
132 error = kern_path(filename, lookup_flags, &path); in init_stat()
135 error = vfs_getattr(&path, stat, STATX_BASIC_STATS, in init_stat()
137 path_put(&path); in init_stat()
144 struct path path; in init_mknod() local
152 dentry = kern_path_create(AT_FDCWD, filename, &path, 0); in init_mknod()
156 if (!IS_POSIXACL(path.dentry->d_inode)) in init_mknod()
158 error = security_path_mknod(&path, dentry, mode, dev); in init_mknod()
160 error = vfs_mknod(mnt_user_ns(path.mnt), path.dentry->d_inode, in init_mknod()
162 done_path_create(&path, dentry); in init_mknod()
169 struct path old_path, new_path; in init_link()
204 struct path path; in init_symlink() local
207 dentry = kern_path_create(AT_FDCWD, newname, &path, 0); in init_symlink()
210 error = security_path_symlink(&path, dentry, oldname); in init_symlink()
212 error = vfs_symlink(mnt_user_ns(path.mnt), path.dentry->d_inode, in init_symlink()
214 done_path_create(&path, dentry); in init_symlink()
226 struct path path; in init_mkdir() local
229 dentry = kern_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in init_mkdir()
232 if (!IS_POSIXACL(path.dentry->d_inode)) in init_mkdir()
234 error = security_path_mkdir(&path, dentry, mode); in init_mkdir()
236 error = vfs_mkdir(mnt_user_ns(path.mnt), path.dentry->d_inode, in init_mkdir()
238 done_path_create(&path, dentry); in init_mkdir()
249 struct path path; in init_utimes() local
252 error = kern_path(filename, 0, &path); in init_utimes()
255 error = vfs_utimes(&path, ts); in init_utimes()
256 path_put(&path); in init_utimes()