Lines Matching refs:subj_cred
48 kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid(); in file_audit_cb()
94 int aa_audit_file(const struct cred *subj_cred, in aa_audit_file() argument
103 ad.subj_cred = subj_cred; in aa_audit_file()
147 static int path_name(const char *op, const struct cred *subj_cred, in path_name() argument
160 aa_audit_file(subj_cred, in path_name()
215 static int __aa_path_perm(const char *op, const struct cred *subj_cred, in __aa_path_perm() argument
230 return aa_audit_file(subj_cred, in __aa_path_perm()
236 static int profile_path_perm(const char *op, const struct cred *subj_cred, in profile_path_perm() argument
248 error = path_name(op, subj_cred, &profile->label, path, in profile_path_perm()
253 return __aa_path_perm(op, subj_cred, profile, name, request, cond, in profile_path_perm()
269 int aa_path_perm(const char *op, const struct cred *subj_cred, in aa_path_perm() argument
285 profile_path_perm(op, subj_cred, profile, path, buffer, in aa_path_perm()
313 static int profile_path_link(const struct cred *subj_cred, in profile_path_link() argument
328 error = path_name(OP_LINK, subj_cred, &profile->label, link, in profile_path_link()
335 error = path_name(OP_LINK, subj_cred, &profile->label, target, in profile_path_link()
396 return aa_audit_file(subj_cred, in profile_path_link()
420 int aa_path_link(const struct cred *subj_cred, in aa_path_link() argument
442 profile_path_link(subj_cred, profile, &link, buffer, in aa_path_link()
471 static int __file_path_perm(const char *op, const struct cred *subj_cred, in __file_path_perm() argument
499 profile_path_perm(op, subj_cred, profile, in __file_path_perm()
513 profile_path_perm(op, subj_cred, in __file_path_perm()
519 profile_path_perm(op, subj_cred, in __file_path_perm()
532 static int __file_sock_perm(const char *op, const struct cred *subj_cred, in __file_sock_perm() argument
547 error = aa_sock_file_perm(subj_cred, label, op, request, sock); in __file_sock_perm()
551 last_error(error, aa_sock_file_perm(subj_cred, flabel, op, in __file_sock_perm()
571 int aa_file_perm(const char *op, const struct cred *subj_cred, in aa_file_perm() argument
608 error = __file_path_perm(op, subj_cred, label, flabel, file, in aa_file_perm()
612 error = __file_sock_perm(op, subj_cred, label, flabel, file, in aa_file_perm()
620 static void revalidate_tty(const struct cred *subj_cred, struct aa_label *label) in revalidate_tty() argument
638 if (aa_file_perm(OP_INHERIT, subj_cred, label, file, in revalidate_tty()