Lines Matching refs:path
293 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument
296 AA_BUG(!path); in path_flags()
299 (S_ISDIR(path->dentry->d_inode->i_mode) ? PATH_IS_DIR : 0); in path_flags()
317 const struct path *mntpath, char *buffer, in match_mnt_path_str()
373 static int match_mnt(struct aa_profile *profile, const struct path *path, in match_mnt() argument
374 char *buffer, struct path *devpath, char *devbuffer, in match_mnt()
395 return match_mnt_path_str(profile, path, buffer, devname, type, flags, in match_mnt()
399 int aa_remount(struct aa_label *label, const struct path *path, in aa_remount() argument
408 AA_BUG(!path); in aa_remount()
410 binary = path->dentry->d_sb->s_type->fs_flags & FS_BINARY_MOUNTDATA; in aa_remount()
414 match_mnt(profile, path, buffer, NULL, NULL, NULL, in aa_remount()
421 int aa_bind_mount(struct aa_label *label, const struct path *path, in aa_bind_mount() argument
426 struct path old_path; in aa_bind_mount()
430 AA_BUG(!path); in aa_bind_mount()
443 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_bind_mount()
451 int aa_mount_change_type(struct aa_label *label, const struct path *path, in aa_mount_change_type() argument
459 AA_BUG(!path); in aa_mount_change_type()
467 match_mnt(profile, path, buffer, NULL, NULL, NULL, in aa_mount_change_type()
474 int aa_move_mount(struct aa_label *label, const struct path *path, in aa_move_mount() argument
479 struct path old_path; in aa_move_mount()
483 AA_BUG(!path); in aa_move_mount()
494 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_move_mount()
503 const struct path *path, const char *type, unsigned long flags, in aa_new_mount() argument
511 struct path tmp_path, *dev_path = NULL; in aa_new_mount()
514 AA_BUG(!path); in aa_new_mount()
540 match_mnt(profile, path, buffer, dev_path, dev_buffer, in aa_new_mount()
544 match_mnt_path_str(profile, path, buffer, dev_name, in aa_new_mount()
554 static int profile_umount(struct aa_profile *profile, struct path *path, in profile_umount() argument
563 AA_BUG(!path); in profile_umount()
568 error = aa_path_name(path, path_flags(profile, path), buffer, &name, in profile_umount()
590 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount() local
597 profile_umount(profile, &path, buffer)); in aa_umount()
608 const struct path *new_path, in build_pivotroot()
610 const struct path *old_path, in build_pivotroot()
659 int aa_pivotroot(struct aa_label *label, const struct path *old_path, in aa_pivotroot()
660 const struct path *new_path) in aa_pivotroot()