Lines Matching refs:path

117  * @path: Pointer to "struct path".
121 static int tomoyo_inode_getattr(const struct path *path)
123 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL);
129 * @path: Pointer to "struct path".
133 static int tomoyo_path_truncate(const struct path *path)
135 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL);
153 * @parent: Pointer to "struct path".
158 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry)
160 struct path path = { .mnt = parent->mnt, .dentry = dentry };
162 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL);
168 * @parent: Pointer to "struct path".
174 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry,
177 struct path path = { .mnt = parent->mnt, .dentry = dentry };
179 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path,
186 * @parent: Pointer to "struct path".
191 static int tomoyo_path_rmdir(const struct path *parent, struct dentry *dentry)
193 struct path path = { .mnt = parent->mnt, .dentry = dentry };
195 return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path, NULL);
201 * @parent: Pointer to "struct path".
207 static int tomoyo_path_symlink(const struct path *parent, struct dentry *dentry,
210 struct path path = { .mnt = parent->mnt, .dentry = dentry };
212 return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path, old_name);
218 * @parent: Pointer to "struct path".
225 static int tomoyo_path_mknod(const struct path *parent, struct dentry *dentry,
228 struct path path = { .mnt = parent->mnt, .dentry = dentry };
242 return tomoyo_mkdev_perm(type, &path, perm, dev);
252 return tomoyo_path_number_perm(type, &path, perm);
259 * @new_dir: Pointer to "struct path".
264 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir,
267 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry };
268 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry };
276 * @old_parent: Pointer to "struct path".
278 * @new_parent: Pointer to "struct path".
284 static int tomoyo_path_rename(const struct path *old_parent,
286 const struct path *new_parent,
290 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry };
291 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry };
356 * @path: Pointer to "struct path".
361 static int tomoyo_path_chmod(const struct path *path, umode_t mode)
363 return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, path,
370 * @path: Pointer to "struct path".
376 static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
381 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHOWN, path,
384 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHGRP, path,
392 * @path: Pointer to "struct path".
396 static int tomoyo_path_chroot(const struct path *path)
398 return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL);
405 * @path: Pointer to "struct path".
412 static int tomoyo_sb_mount(const char *dev_name, const struct path *path,
415 return tomoyo_mount_permission(dev_name, path, type, flags, data);
428 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
430 return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path, NULL);
436 * @old_path: Pointer to "struct path".
437 * @new_path: Pointer to "struct path".
441 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path)