Lines Matching refs:path

23 #include "include/path.h"
279 static int path_flags(struct aa_profile *profile, const struct path *path)
282 AA_BUG(!path);
285 (S_ISDIR(path->dentry->d_inode->i_mode) ? PATH_IS_DIR : 0);
289 * match_mnt_path_str - handle path matching for mount
305 const struct path *mntpath, char *buffer,
351 * match_mnt - handle path matching for mount
354 * @path: for the mntpnt (NOT NULL)
356 * @devpath: path devname/src_name (MAYBE NULL)
366 struct aa_profile *profile, const struct path *path,
367 char *buffer, const struct path *devpath, char *devbuffer,
390 return match_mnt_path_str(subj_cred, profile, path, buffer, devname,
395 struct aa_label *label, const struct path *path,
404 AA_BUG(!path);
406 binary = path->dentry->d_sb->s_type->fs_flags & FS_BINARY_MOUNTDATA;
412 match_mnt(subj_cred, profile, path, buffer, NULL,
421 struct aa_label *label, const struct path *path,
426 struct path old_path;
430 AA_BUG(!path);
448 match_mnt(subj_cred, profile, path, buffer, &old_path,
459 struct aa_label *label, const struct path *path,
467 AA_BUG(!path);
477 match_mnt(subj_cred, profile, path, buffer, NULL,
486 struct aa_label *label, const struct path *from_path,
487 const struct path *to_path)
518 const struct path *path, const char *orig_name)
520 struct path old_path;
529 error = aa_move_mount(subj_cred, label, &old_path, path);
536 const char *dev_name, const struct path *path,
544 struct path tmp_path, *dev_path = NULL;
547 AA_BUG(!path);
582 match_mnt(subj_cred, profile, path, buffer,
587 match_mnt_path_str(subj_cred, profile, path,
602 struct aa_profile *profile, const struct path *path,
613 AA_BUG(!path);
618 error = aa_path_name(path, path_flags(profile, path), buffer, &name,
642 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
652 profile_umount(subj_cred, profile, &path, buffer));
664 const struct path *new_path,
666 const struct path *old_path,
719 const struct path *old_path,
720 const struct path *new_path)