Lines Matching refs:path
147 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument
149 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr()
159 static int tomoyo_path_truncate(struct path *path) in tomoyo_path_truncate() argument
161 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate()
172 static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
174 struct path path = { parent->mnt, dentry }; in tomoyo_path_unlink() local
175 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
187 static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
190 struct path path = { parent->mnt, dentry }; in tomoyo_path_mkdir() local
191 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
203 static int tomoyo_path_rmdir(struct path *parent, struct dentry *dentry) in tomoyo_path_rmdir()
205 struct path path = { parent->mnt, dentry }; in tomoyo_path_rmdir() local
206 return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path, NULL); in tomoyo_path_rmdir()
218 static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry, in tomoyo_path_symlink()
221 struct path path = { parent->mnt, dentry }; in tomoyo_path_symlink() local
222 return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path, old_name); in tomoyo_path_symlink()
235 static int tomoyo_path_mknod(struct path *parent, struct dentry *dentry, in tomoyo_path_mknod()
238 struct path path = { parent->mnt, dentry }; in tomoyo_path_mknod() local
252 return tomoyo_mkdev_perm(type, &path, perm, dev); in tomoyo_path_mknod()
262 return tomoyo_path_number_perm(type, &path, perm); in tomoyo_path_mknod()
274 static int tomoyo_path_link(struct dentry *old_dentry, struct path *new_dir, in tomoyo_path_link()
277 struct path path1 = { new_dir->mnt, old_dentry }; in tomoyo_path_link()
278 struct path path2 = { new_dir->mnt, new_dentry }; in tomoyo_path_link()
292 static int tomoyo_path_rename(struct path *old_parent, in tomoyo_path_rename()
294 struct path *new_parent, in tomoyo_path_rename()
297 struct path path1 = { old_parent->mnt, old_dentry }; in tomoyo_path_rename()
298 struct path path2 = { new_parent->mnt, new_dentry }; in tomoyo_path_rename()
360 static int tomoyo_path_chmod(struct path *path, umode_t mode) in tomoyo_path_chmod() argument
362 return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, path, in tomoyo_path_chmod()
375 static int tomoyo_path_chown(struct path *path, kuid_t uid, kgid_t gid) in tomoyo_path_chown() argument
379 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHOWN, path, in tomoyo_path_chown()
382 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHGRP, path, in tomoyo_path_chown()
394 static int tomoyo_path_chroot(struct path *path) in tomoyo_path_chroot() argument
396 return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL); in tomoyo_path_chroot()
410 static int tomoyo_sb_mount(const char *dev_name, struct path *path, in tomoyo_sb_mount() argument
413 return tomoyo_mount_permission(dev_name, path, type, flags, data); in tomoyo_sb_mount()
426 struct path path = { mnt, mnt->mnt_root }; in tomoyo_sb_umount() local
427 return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path, NULL); in tomoyo_sb_umount()
438 static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path) in tomoyo_sb_pivotroot()