예제 #1
0
파일: net.c 프로젝트: SelfImp/m75
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));
}
예제 #2
0
파일: net.c 프로젝트: AlexShiLucky/linux
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));
}
예제 #3
0
파일: net.c 프로젝트: SelfImp/m75
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));

}