Lines Matching refs:subj_cred
116 * @subj_cred: cred of the subject
132 static int audit_mount(const struct cred *subj_cred,
171 ad.subj_cred = subj_cred;
290 * @subj_cred: cred of confined subject
303 static int match_mnt_path_str(const struct cred *subj_cred,
345 return audit_mount(subj_cred, profile, OP_MOUNT, mntpnt, devname,
352 * @subj_cred: cred of the subject
365 static int match_mnt(const struct cred *subj_cred,
390 return match_mnt_path_str(subj_cred, profile, path, buffer, devname,
394 int aa_remount(const struct cred *subj_cred,
412 match_mnt(subj_cred, profile, path, buffer, NULL,
420 int aa_bind_mount(const struct cred *subj_cred,
448 match_mnt(subj_cred, profile, path, buffer, &old_path,
458 int aa_mount_change_type(const struct cred *subj_cred,
477 match_mnt(subj_cred, profile, path, buffer, NULL,
485 int aa_move_mount(const struct cred *subj_cred,
507 match_mnt(subj_cred, profile, to_path, to_buffer,
517 int aa_move_mount_old(const struct cred *subj_cred, struct aa_label *label,
529 error = aa_move_mount(subj_cred, label, &old_path, path);
535 int aa_new_mount(const struct cred *subj_cred, struct aa_label *label,
582 match_mnt(subj_cred, profile, path, buffer,
587 match_mnt_path_str(subj_cred, profile, path,
601 static int profile_umount(const struct cred *subj_cred,
631 return audit_mount(subj_cred, profile, OP_UMOUNT, name, NULL, NULL,
636 int aa_umount(const struct cred *subj_cred, struct aa_label *label,
652 profile_umount(subj_cred, profile, &path, buffer));
662 static struct aa_label *build_pivotroot(const struct cred *subj_cred,
708 error = audit_mount(subj_cred, profile, OP_PIVOTROOT, new_name,
718 int aa_pivotroot(const struct cred *subj_cred, struct aa_label *label,
737 build_pivotroot(subj_cred, profile, new_path,
764 audit_mount(subj_cred, profile, OP_PIVOTROOT,