Lines Matching refs:subj_cred

49 	kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid();
81 * @subj_cred: cred of the subject
95 int aa_audit_file(const struct cred *subj_cred,
104 ad.subj_cred = subj_cred;
148 static int path_name(const char *op, const struct cred *subj_cred,
161 aa_audit_file(subj_cred,
221 int __aa_path_perm(const char *op, const struct cred *subj_cred,
236 return aa_audit_file(subj_cred,
242 static int profile_path_perm(const char *op, const struct cred *subj_cred,
254 error = path_name(op, subj_cred, &profile->label, path,
259 return __aa_path_perm(op, subj_cred, profile, name, request, cond,
266 * @subj_cred: subject cred
275 int aa_path_perm(const char *op, const struct cred *subj_cred,
291 profile_path_perm(op, subj_cred, profile, path, buffer,
319 static int profile_path_link(const struct cred *subj_cred,
333 error = path_name(OP_LINK, subj_cred, &profile->label, link,
340 error = path_name(OP_LINK, subj_cred, &profile->label, target,
401 return aa_audit_file(subj_cred,
408 * @subj_cred: subject cred
425 int aa_path_link(const struct cred *subj_cred,
449 profile_path_link(subj_cred, profile, &link, buffer,
478 static int __file_path_perm(const char *op, const struct cred *subj_cred,
506 profile_path_perm(op, subj_cred, profile,
520 profile_path_perm(op, subj_cred,
526 profile_path_perm(op, subj_cred,
539 static int __file_sock_perm(const char *op, const struct cred *subj_cred,
551 error = aa_sock_file_perm(subj_cred, label, op, request, file);
555 last_error(error, aa_sock_file_perm(subj_cred, flabel, op,
596 * @subj_cred: subject cred
604 int aa_file_perm(const char *op, const struct cred *subj_cred,
642 error = __file_path_perm(op, subj_cred, label, flabel, file,
646 error = __file_sock_perm(op, subj_cred, label, flabel, file,
654 static void revalidate_tty(const struct cred *subj_cred, struct aa_label *label)
672 if (aa_file_perm(OP_INHERIT, subj_cred, label, file,