Lines Matching full:path
116 * @path: Pointer to "struct path".
120 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument
122 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr()
128 * @path: Pointer to "struct path".
132 static int tomoyo_path_truncate(const struct path *path) in tomoyo_path_truncate() argument
134 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate()
140 * @parent: Pointer to "struct path".
145 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
147 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() local
149 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
155 * @parent: Pointer to "struct path".
161 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
164 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() local
166 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
173 * @parent: Pointer to "struct path".
178 static int tomoyo_path_rmdir(const struct path *parent, struct dentry *dentry) in tomoyo_path_rmdir()
180 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_rmdir() local
182 return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path, NULL); in tomoyo_path_rmdir()
188 * @parent: Pointer to "struct path".
194 static int tomoyo_path_symlink(const struct path *parent, struct dentry *dentry, in tomoyo_path_symlink()
197 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_symlink() local
199 return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path, old_name); in tomoyo_path_symlink()
205 * @parent: Pointer to "struct path".
212 static int tomoyo_path_mknod(const struct path *parent, struct dentry *dentry, in tomoyo_path_mknod()
215 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mknod() local
229 return tomoyo_mkdev_perm(type, &path, perm, dev); in tomoyo_path_mknod()
239 return tomoyo_path_number_perm(type, &path, perm); in tomoyo_path_mknod()
246 * @new_dir: Pointer to "struct path".
251 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link()
254 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link()
255 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
263 * @old_parent: Pointer to "struct path".
265 * @new_parent: Pointer to "struct path".
270 static int tomoyo_path_rename(const struct path *old_parent, in tomoyo_path_rename()
272 const struct path *new_parent, in tomoyo_path_rename()
275 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry }; in tomoyo_path_rename()
276 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
333 * @path: Pointer to "struct path".
338 static int tomoyo_path_chmod(const struct path *path, umode_t mode) in tomoyo_path_chmod() argument
340 return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, path, in tomoyo_path_chmod()
347 * @path: Pointer to "struct path".
353 static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in tomoyo_path_chown() argument
358 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHOWN, path, in tomoyo_path_chown()
361 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHGRP, path, in tomoyo_path_chown()
369 * @path: Pointer to "struct path".
373 static int tomoyo_path_chroot(const struct path *path) in tomoyo_path_chroot() argument
375 return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL); in tomoyo_path_chroot()
382 * @path: Pointer to "struct path".
389 static int tomoyo_sb_mount(const char *dev_name, const struct path *path, in tomoyo_sb_mount() argument
392 return tomoyo_mount_permission(dev_name, path, type, flags, data); in tomoyo_sb_mount()
405 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in tomoyo_sb_umount() local
407 return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path, NULL); in tomoyo_sb_umount()
413 * @old_path: Pointer to "struct path".
414 * @new_path: Pointer to "struct path".
418 static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) in tomoyo_sb_pivotroot()