int aa_af_perm(struct aa_label *label, int op, u32 request, u16 family, int type, int protocol, struct sock *sk) { struct aa_profile *profile; return fn_for_each_confined(label, profile, aa_profile_af_perm(profile, op, family, type, protocol, sk)); }
int aa_af_perm(struct aa_label *label, const char *op, u32 request, u16 family, int type, int protocol) { struct aa_profile *profile; DEFINE_AUDIT_NET(sa, op, NULL, family, type, protocol); return fn_for_each_confined(label, profile, aa_profile_af_perm(profile, &sa, request, family, type)); }
static int aa_label_sk_perm(struct aa_label *label, int op, u32 request, struct sock *sk) { struct aa_profile *profile; AA_BUG(!label); AA_BUG(!sk); if (unconfined(label)) return 0; return fn_for_each_confined(label, profile, aa_profile_af_perm(profile, op, sk->sk_family, sk->sk_type, sk->sk_protocol, sk)); }