Lines Matching refs:error

47 	int error;
49 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path);
50 if (error)
51 return error;
52 error = inode_permission(path.dentry->d_inode, MAY_EXEC | MAY_CHDIR);
53 if (!error)
56 return error;
62 int error;
64 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path);
65 if (error)
66 return error;
67 error = inode_permission(path.dentry->d_inode, MAY_EXEC | MAY_CHDIR);
68 if (error)
70 error = -EPERM;
73 error = security_path_chroot(&path);
74 if (error)
79 return error;
86 int error;
88 error = kern_path(filename, lookup_flags, &path);
89 if (error)
90 return error;
91 error = mnt_want_write(path.mnt);
92 if (!error) {
93 error = chown_common(&path, user, group);
97 return error;
103 int error;
105 error = kern_path(filename, LOOKUP_FOLLOW, &path);
106 if (error)
107 return error;
108 error = chmod_common(&path, mode);
110 return error;
116 int error;
118 error = kern_path(filename, LOOKUP_FOLLOW, &path);
119 if (error)
120 return error;
121 error = inode_permission(d_inode(path.dentry), MAY_ACCESS);
123 return error;
130 int error;
132 error = kern_path(filename, lookup_flags, &path);
133 if (error)
134 return error;
135 error = vfs_getattr(&path, stat, STATX_BASIC_STATS,
138 return error;
145 int error;
158 error = security_path_mknod(&path, dentry, mode, dev);
159 if (!error)
160 error = vfs_mknod(path.dentry->d_inode, dentry, mode,
163 return error;
170 int error;
172 error = kern_path(oldname, 0, &old_path);
173 if (error)
174 return error;
177 error = PTR_ERR(new_dentry);
181 error = -EXDEV;
184 error = may_linkat(&old_path);
185 if (unlikely(error))
187 error = security_path_link(old_path.dentry, &new_path, new_dentry);
188 if (error)
190 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry,
196 return error;
203 int error;
208 error = security_path_symlink(&path, dentry, oldname);
209 if (!error)
210 error = vfs_symlink(path.dentry->d_inode, dentry, oldname);
212 return error;
224 int error;
231 error = security_path_mkdir(&path, dentry, mode);
232 if (!error)
233 error = vfs_mkdir(path.dentry->d_inode, dentry, mode);
235 return error;
246 int error;
248 error = kern_path(filename, 0, &path);
249 if (error)
250 return error;
251 error = vfs_utimes(&path, ts);
253 return error;