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, const 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()
416 match_mnt(profile, path, buffer, NULL, NULL, NULL, in aa_remount()
423 int aa_bind_mount(struct aa_label *label, const struct path *path, in aa_bind_mount() argument
428 struct path old_path; in aa_bind_mount()
432 AA_BUG(!path); in aa_bind_mount()
450 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_bind_mount()
460 int aa_mount_change_type(struct aa_label *label, const struct path *path, in aa_mount_change_type() argument
468 AA_BUG(!path); in aa_mount_change_type()
478 match_mnt(profile, path, buffer, NULL, NULL, NULL, in aa_mount_change_type()
485 int aa_move_mount(struct aa_label *label, const struct path *path, in aa_move_mount() argument
490 struct path old_path; in aa_move_mount()
494 AA_BUG(!path); in aa_move_mount()
509 match_mnt(profile, path, buffer, &old_path, old_buffer, in aa_move_mount()
520 const struct path *path, const char *type, unsigned long flags, in aa_new_mount() argument
528 struct path tmp_path, *dev_path = NULL; in aa_new_mount()
531 AA_BUG(!path); in aa_new_mount()
566 match_mnt(profile, path, buffer, dev_path, dev_buffer, in aa_new_mount()
570 match_mnt_path_str(profile, path, buffer, dev_name, in aa_new_mount()
583 static int profile_umount(struct aa_profile *profile, const struct path *path, in profile_umount() argument
592 AA_BUG(!path); in profile_umount()
597 error = aa_path_name(path, path_flags(profile, path), buffer, &name, in profile_umount()
619 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount() local
629 profile_umount(profile, &path, buffer)); in aa_umount()
640 const struct path *new_path, in build_pivotroot()
642 const struct path *old_path, in build_pivotroot()
691 int aa_pivotroot(struct aa_label *label, const struct path *old_path, in aa_pivotroot()
692 const struct path *new_path) in aa_pivotroot()