Lines Matching refs:sa
76 struct common_audit_data *sa = va; in audit_net_cb() local
79 if (address_family_names[sa->u.net->family]) in audit_net_cb()
80 audit_log_string(ab, address_family_names[sa->u.net->family]); in audit_net_cb()
82 audit_log_format(ab, "\"unknown(%d)\"", sa->u.net->family); in audit_net_cb()
84 if (sock_type_names[aad(sa)->net.type]) in audit_net_cb()
85 audit_log_string(ab, sock_type_names[aad(sa)->net.type]); in audit_net_cb()
87 audit_log_format(ab, "\"unknown(%d)\"", aad(sa)->net.type); in audit_net_cb()
88 audit_log_format(ab, " protocol=%d", aad(sa)->net.protocol); in audit_net_cb()
90 if (aad(sa)->request & NET_PERMS_MASK) { in audit_net_cb()
92 aa_audit_perm_mask(ab, aad(sa)->request, NULL, 0, in audit_net_cb()
95 if (aad(sa)->denied & NET_PERMS_MASK) { in audit_net_cb()
97 aa_audit_perm_mask(ab, aad(sa)->denied, NULL, 0, in audit_net_cb()
101 if (aad(sa)->peer) { in audit_net_cb()
103 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_net_cb()
109 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() argument
132 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_profile_af_perm()
139 DEFINE_AUDIT_NET(sa, op, NULL, family, type, protocol); in aa_af_perm()
142 aa_profile_af_perm(profile, &sa, request, family, in aa_af_perm()
150 DEFINE_AUDIT_SK(sa, op, sk); in aa_label_sk_perm()
159 aa_profile_af_sk_perm(profile, &sa, request, sk)); in aa_label_sk_perm()