Lines Matching refs:path

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