Lines Matching refs:path

141 static int tomoyo_inode_getattr(const struct path *path)  in tomoyo_inode_getattr()  argument
143 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr()
153 static int tomoyo_path_truncate(struct path *path) in tomoyo_path_truncate() argument
155 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate()
166 static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry) in tomoyo_path_unlink()
168 struct path path = { parent->mnt, dentry }; in tomoyo_path_unlink() local
169 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink()
181 static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir()
184 struct path path = { parent->mnt, dentry }; in tomoyo_path_mkdir() local
185 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir()
197 static int tomoyo_path_rmdir(struct path *parent, struct dentry *dentry) in tomoyo_path_rmdir()
199 struct path path = { parent->mnt, dentry }; in tomoyo_path_rmdir() local
200 return tomoyo_path_perm(TOMOYO_TYPE_RMDIR, &path, NULL); in tomoyo_path_rmdir()
212 static int tomoyo_path_symlink(struct path *parent, struct dentry *dentry, in tomoyo_path_symlink()
215 struct path path = { parent->mnt, dentry }; in tomoyo_path_symlink() local
216 return tomoyo_path_perm(TOMOYO_TYPE_SYMLINK, &path, old_name); in tomoyo_path_symlink()
229 static int tomoyo_path_mknod(struct path *parent, struct dentry *dentry, in tomoyo_path_mknod()
232 struct path path = { parent->mnt, dentry }; in tomoyo_path_mknod() local
246 return tomoyo_mkdev_perm(type, &path, perm, dev); in tomoyo_path_mknod()
256 return tomoyo_path_number_perm(type, &path, perm); in tomoyo_path_mknod()
268 static int tomoyo_path_link(struct dentry *old_dentry, struct path *new_dir, in tomoyo_path_link()
271 struct path path1 = { new_dir->mnt, old_dentry }; in tomoyo_path_link()
272 struct path path2 = { new_dir->mnt, new_dentry }; in tomoyo_path_link()
286 static int tomoyo_path_rename(struct path *old_parent, in tomoyo_path_rename()
288 struct path *new_parent, in tomoyo_path_rename()
291 struct path path1 = { old_parent->mnt, old_dentry }; in tomoyo_path_rename()
292 struct path path2 = { new_parent->mnt, new_dentry }; in tomoyo_path_rename()
354 static int tomoyo_path_chmod(struct path *path, umode_t mode) in tomoyo_path_chmod() argument
356 return tomoyo_path_number_perm(TOMOYO_TYPE_CHMOD, path, in tomoyo_path_chmod()
369 static int tomoyo_path_chown(struct path *path, kuid_t uid, kgid_t gid) in tomoyo_path_chown() argument
373 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHOWN, path, in tomoyo_path_chown()
376 error = tomoyo_path_number_perm(TOMOYO_TYPE_CHGRP, path, in tomoyo_path_chown()
388 static int tomoyo_path_chroot(struct path *path) in tomoyo_path_chroot() argument
390 return tomoyo_path_perm(TOMOYO_TYPE_CHROOT, path, NULL); in tomoyo_path_chroot()
404 static int tomoyo_sb_mount(const char *dev_name, struct path *path, in tomoyo_sb_mount() argument
407 return tomoyo_mount_permission(dev_name, path, type, flags, data); in tomoyo_sb_mount()
420 struct path path = { mnt, mnt->mnt_root }; in tomoyo_sb_umount() local
421 return tomoyo_path_perm(TOMOYO_TYPE_UMOUNT, &path, NULL); in tomoyo_sb_umount()
432 static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path) in tomoyo_sb_pivotroot()