Lines Matching refs:profile

230 static inline int profile_sk_perm(struct aa_profile *profile, u32 request,  in profile_sk_perm()  argument
235 AA_BUG(!profile); in profile_sk_perm()
238 return aa_profile_af_sk_perm(profile, ad, request, sk); in profile_sk_perm()
242 static int profile_create_perm(struct aa_profile *profile, int family, in profile_create_perm() argument
246 AA_BUG(!profile); in profile_create_perm()
248 return aa_profile_af_perm(profile, ad, AA_MAY_CREATE, family, type, in profile_create_perm()
254 static int profile_remote_perm(struct aa_profile *profile, in profile_remote_perm() argument
260 AA_BUG(!profile); in profile_remote_perm()
267 return aa_profile_af_sk_perm(profile, ad, request, sk); in profile_remote_perm()
270 static int profile_bind_perm(struct aa_profile *profile, in profile_bind_perm() argument
275 return aa_profile_af_sk_perm(profile, ad, AA_MAY_BIND, sk); in profile_bind_perm()
279 static int profile_listen_perm(struct aa_profile *profile, in profile_listen_perm() argument
284 AA_BUG(!profile); in profile_listen_perm()
290 return aa_profile_af_sk_perm(profile, ad, AA_MAY_LISTEN, sk); in profile_listen_perm()
293 static inline int profile_accept_perm(struct aa_profile *profile, in profile_accept_perm() argument
299 AA_BUG(!profile); in profile_accept_perm()
306 return aa_profile_af_sk_perm(profile, ad, AA_MAY_ACCEPT, sk); in profile_accept_perm()
310 static int profile_opt_perm(struct aa_profile *profile, u32 request, in profile_opt_perm() argument
315 AA_BUG(!profile); in profile_opt_perm()
321 return aa_profile_af_sk_perm(profile, ad, request, sk); in profile_opt_perm()
393 struct aa_profile *profile; in aa_inet_create_perm() local
400 error = fn_for_each(label, profile, in aa_inet_create_perm()
401 profile_create_perm(profile, family, type, in aa_inet_create_perm()
412 return sk_has_perm1(sock->sk, OP_BIND, AA_MAY_BIND, profile, ad, in aa_inet_bind_perm()
415 profile_bind_perm(profile, sock->sk, &maddr, &ad)); in aa_inet_bind_perm()
431 return sk_has_perm2(sock->sk, OP_CONNECT, AA_MAY_CONNECT, profile, ad, in aa_inet_connect_perm()
435 profile_remote_perm(profile, sock->sk, in aa_inet_connect_perm()
445 return sk_has_perm1(sock->sk, OP_LISTEN, AA_MAY_LISTEN, profile, ad, in aa_inet_listen_perm()
447 profile_listen_perm(profile, sock->sk, &maddr.maddr, in aa_inet_listen_perm()
457 error = sk_has_perm1(sock->sk, OP_ACCEPT, AA_MAY_ACCEPT, profile, ad, in aa_inet_accept_perm()
459 profile_accept_perm(profile, sock->sk, in aa_inet_accept_perm()
475 return sk_has_perm2(sock->sk, op, request, profile, ad, in aa_inet_msg_perm()
479 profile_remote_perm(profile, sock->sk, request, in aa_inet_msg_perm()
489 return sk_has_perm1(sock->sk, op, request, profile, ad, in aa_inet_opt_perm()
491 profile_opt_perm(profile, request, sock->sk, in aa_inet_opt_perm()
501 return label_sk_has_perm1(cred, label, sock->sk, op, request, profile, in inet_label_sock_perm()
504 profile_sk_perm(profile, request, sock->sk, in inet_label_sock_perm()
542 profile, ad, in aa_inet_file_perm()
544 profile_sk_perm(profile, sk_req, sock->sk, &laddr.maddr, in aa_inet_file_perm()
554 op, request, profile, ad, in aa_inet_file_perm()
557 profile_remote_perm(profile, sock->sk, in aa_inet_file_perm()