Lines Matching refs:subj_cred

48 	kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid();
80 * @subj_cred: cred of the subject
94 int aa_audit_file(const struct cred *subj_cred,
103 ad.subj_cred = subj_cred;
160 static int path_name(const char *op, const struct cred *subj_cred,
173 aa_audit_file(subj_cred,
228 static int __aa_path_perm(const char *op, const struct cred *subj_cred,
243 return aa_audit_file(subj_cred,
249 static int profile_path_perm(const char *op, const struct cred *subj_cred,
261 error = path_name(op, subj_cred, &profile->label, path,
266 return __aa_path_perm(op, subj_cred, profile, name, request, cond,
273 * @subj_cred: subject cred
282 int aa_path_perm(const char *op, const struct cred *subj_cred,
298 profile_path_perm(op, subj_cred, profile, path, buffer,
326 static int profile_path_link(const struct cred *subj_cred,
341 error = path_name(OP_LINK, subj_cred, &profile->label, link,
348 error = path_name(OP_LINK, subj_cred, &profile->label, target,
409 return aa_audit_file(subj_cred,
416 * @subj_cred: subject cred
433 int aa_path_link(const struct cred *subj_cred,
455 profile_path_link(subj_cred, profile, &link, buffer,
484 static int __file_path_perm(const char *op, const struct cred *subj_cred,
512 profile_path_perm(op, subj_cred, profile,
526 profile_path_perm(op, subj_cred,
532 profile_path_perm(op, subj_cred,
545 static int __file_sock_perm(const char *op, const struct cred *subj_cred,
560 error = aa_sock_file_perm(subj_cred, label, op, request, sock);
564 last_error(error, aa_sock_file_perm(subj_cred, flabel, op,
576 * @subj_cred: subject cred
584 int aa_file_perm(const char *op, const struct cred *subj_cred,
621 error = __file_path_perm(op, subj_cred, label, flabel, file,
625 error = __file_sock_perm(op, subj_cred, label, flabel, file,
633 static void revalidate_tty(const struct cred *subj_cred, struct aa_label *label)
651 if (aa_file_perm(OP_INHERIT, subj_cred, label, file,