Lines Matching refs:subj_cred
134 static int audit_mount(const struct cred *subj_cred, in audit_mount() argument
173 ad.subj_cred = subj_cred; in audit_mount()
305 static int match_mnt_path_str(const struct cred *subj_cred, in match_mnt_path_str() argument
347 return audit_mount(subj_cred, profile, OP_MOUNT, mntpnt, devname, in match_mnt_path_str()
367 static int match_mnt(const struct cred *subj_cred, in match_mnt() argument
392 return match_mnt_path_str(subj_cred, profile, path, buffer, devname, in match_mnt()
396 int aa_remount(const struct cred *subj_cred, in aa_remount() argument
414 match_mnt(subj_cred, profile, path, buffer, NULL, in aa_remount()
422 int aa_bind_mount(const struct cred *subj_cred, in aa_bind_mount() argument
450 match_mnt(subj_cred, profile, path, buffer, &old_path, in aa_bind_mount()
460 int aa_mount_change_type(const struct cred *subj_cred, in aa_mount_change_type() argument
479 match_mnt(subj_cred, profile, path, buffer, NULL, in aa_mount_change_type()
487 int aa_move_mount(const struct cred *subj_cred, in aa_move_mount() argument
509 match_mnt(subj_cred, profile, to_path, to_buffer, in aa_move_mount()
519 int aa_move_mount_old(const struct cred *subj_cred, struct aa_label *label, in aa_move_mount_old() argument
531 error = aa_move_mount(subj_cred, label, &old_path, path); in aa_move_mount_old()
537 int aa_new_mount(const struct cred *subj_cred, struct aa_label *label, in aa_new_mount() argument
584 match_mnt(subj_cred, profile, path, buffer, in aa_new_mount()
589 match_mnt_path_str(subj_cred, profile, path, in aa_new_mount()
603 static int profile_umount(const struct cred *subj_cred, in profile_umount() argument
633 return audit_mount(subj_cred, profile, OP_UMOUNT, name, NULL, NULL, in profile_umount()
638 int aa_umount(const struct cred *subj_cred, struct aa_label *label, in aa_umount() argument
654 profile_umount(subj_cred, profile, &path, buffer)); in aa_umount()
664 static struct aa_label *build_pivotroot(const struct cred *subj_cred, in build_pivotroot() argument
710 error = audit_mount(subj_cred, profile, OP_PIVOTROOT, new_name, in build_pivotroot()
720 int aa_pivotroot(const struct cred *subj_cred, struct aa_label *label, in aa_pivotroot() argument
739 build_pivotroot(subj_cred, profile, new_path, in aa_pivotroot()
766 audit_mount(subj_cred, profile, OP_PIVOTROOT, in aa_pivotroot()