• Home
  • Raw
  • Download

Lines Matching full:sa

53  * Record common AppArmor audit data from @sa
57 struct common_audit_data *sa = ca; in audit_pre() local
61 aa_audit_type[aad(sa)->type]); in audit_pre()
64 if (aad(sa)->op) { in audit_pre()
65 audit_log_format(ab, " operation=\"%s\"", aad(sa)->op); in audit_pre()
68 if (aad(sa)->info) { in audit_pre()
69 audit_log_format(ab, " info=\"%s\"", aad(sa)->info); in audit_pre()
70 if (aad(sa)->error) in audit_pre()
71 audit_log_format(ab, " error=%d", aad(sa)->error); in audit_pre()
74 if (aad(sa)->label) { in audit_pre()
75 struct aa_label *label = aad(sa)->label; in audit_pre()
94 if (aad(sa)->name) { in audit_pre()
96 audit_log_untrustedstring(ab, aad(sa)->name); in audit_pre()
102 * @sa: audit event structure (NOT NULL)
105 void aa_audit_msg(int type, struct common_audit_data *sa, in aa_audit_msg() argument
108 aad(sa)->type = type; in aa_audit_msg()
109 common_lsm_audit(sa, audit_pre, cb); in aa_audit_msg()
116 * @sa: audit event (NOT NULL)
123 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit() argument
129 if (likely(!aad(sa)->error)) { in aa_audit()
141 return aad(sa)->error; in aa_audit()
146 aad(sa)->label = &profile->label; in aa_audit()
148 aa_audit_msg(type, sa, cb); in aa_audit()
150 if (aad(sa)->type == AUDIT_APPARMOR_KILL) in aa_audit()
152 sa->type == LSM_AUDIT_DATA_TASK && sa->u.tsk ? in aa_audit()
153 sa->u.tsk : current); in aa_audit()
155 if (aad(sa)->type == AUDIT_APPARMOR_ALLOWED) in aa_audit()
156 return complain_error(aad(sa)->error); in aa_audit()
158 return aad(sa)->error; in aa_audit()