Lines Matching refs:path

281 static int path_flags(struct aa_profile *profile, const struct path *path)  in path_flags()  argument
284 AA_BUG(!path); in path_flags()
287 (S_ISDIR(path->dentry->d_inode->i_mode) ? PATH_IS_DIR : 0); in path_flags()
307 const struct path *mntpath, char *buffer, in match_mnt_path_str()
367 struct aa_profile *profile, const struct path *path, in match_mnt() argument
368 char *buffer, const struct path *devpath, char *devbuffer, in match_mnt()
390 return match_mnt_path_str(subj_cred, profile, path, buffer, devname, in match_mnt()
395 struct aa_label *label, const struct path *path, in aa_remount() argument
404 AA_BUG(!path); in aa_remount()
406 binary = path->dentry->d_sb->s_type->fs_flags & FS_BINARY_MOUNTDATA; in aa_remount()
412 match_mnt(subj_cred, profile, path, buffer, NULL, in aa_remount()
421 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()
448 match_mnt(subj_cred, profile, path, buffer, &old_path, in aa_bind_mount()
459 struct aa_label *label, const struct path *path, in aa_mount_change_type() argument
467 AA_BUG(!path); in aa_mount_change_type()
477 match_mnt(subj_cred, profile, path, buffer, NULL, in aa_mount_change_type()
486 struct aa_label *label, const struct path *from_path, in aa_move_mount()
487 const struct path *to_path) in aa_move_mount()
518 const struct path *path, const char *orig_name) in aa_move_mount_old() argument
520 struct path old_path; in aa_move_mount_old()
529 error = aa_move_mount(subj_cred, label, &old_path, path); in aa_move_mount_old()
536 const char *dev_name, const struct path *path, in aa_new_mount() argument
544 struct path tmp_path, *dev_path = NULL; in aa_new_mount()
547 AA_BUG(!path); in aa_new_mount()
582 match_mnt(subj_cred, profile, path, buffer, in aa_new_mount()
587 match_mnt_path_str(subj_cred, profile, path, in aa_new_mount()
602 struct aa_profile *profile, const struct path *path, in profile_umount() argument
612 AA_BUG(!path); in profile_umount()
617 error = aa_path_name(path, path_flags(profile, path), buffer, &name, in profile_umount()
641 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount() local
651 profile_umount(subj_cred, profile, &path, buffer)); in aa_umount()
663 const struct path *new_path, in build_pivotroot()
665 const struct path *old_path, in build_pivotroot()
717 const struct path *old_path, in aa_pivotroot()
718 const struct path *new_path) in aa_pivotroot()