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