Lines Matching defs:sock
1277 int security_netlink_send(struct sock *sk, struct sk_buff *skb)
1334 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)
1336 return call_int_hook(unix_stream_connect, 0, sock, other, newsk);
1340 int security_unix_may_send(struct socket *sock, struct socket *other)
1342 return call_int_hook(unix_may_send, 0, sock, other);
1351 int security_socket_post_create(struct socket *sock, int family,
1354 return call_int_hook(socket_post_create, 0, sock, family, type,
1358 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)
1360 return call_int_hook(socket_bind, 0, sock, address, addrlen);
1363 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)
1365 return call_int_hook(socket_connect, 0, sock, address, addrlen);
1368 int security_socket_listen(struct socket *sock, int backlog)
1370 return call_int_hook(socket_listen, 0, sock, backlog);
1373 int security_socket_accept(struct socket *sock, struct socket *newsock)
1375 return call_int_hook(socket_accept, 0, sock, newsock);
1378 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
1380 return call_int_hook(socket_sendmsg, 0, sock, msg, size);
1383 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
1386 return call_int_hook(socket_recvmsg, 0, sock, msg, size, flags);
1389 int security_socket_getsockname(struct socket *sock)
1391 return call_int_hook(socket_getsockname, 0, sock);
1394 int security_socket_getpeername(struct socket *sock)
1396 return call_int_hook(socket_getpeername, 0, sock);
1399 int security_socket_getsockopt(struct socket *sock, int level, int optname)
1401 return call_int_hook(socket_getsockopt, 0, sock, level, optname);
1404 int security_socket_setsockopt(struct socket *sock, int level, int optname)
1406 return call_int_hook(socket_setsockopt, 0, sock, level, optname);
1409 int security_socket_shutdown(struct socket *sock, int how)
1411 return call_int_hook(socket_shutdown, 0, sock, how);
1414 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
1420 int security_socket_getpeersec_stream(struct socket *sock, char __user *optval,
1423 return call_int_hook(socket_getpeersec_stream, -ENOPROTOOPT, sock,
1427 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
1429 return call_int_hook(socket_getpeersec_dgram, -ENOPROTOOPT, sock,
1434 int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
1439 void security_sk_free(struct sock *sk)
1444 void security_sk_clone(const struct sock *sk, struct sock *newsk)
1450 void security_sk_classify_flow(struct sock *sk, struct flowi *fl)
1462 void security_sock_graft(struct sock *sk, struct socket *parent)
1468 int security_inet_conn_request(struct sock *sk,
1475 void security_inet_csk_clone(struct sock *newsk,
1481 void security_inet_conn_established(struct sock *sk,
1529 int security_tun_dev_attach(struct sock *sk, void *security)