Lines Matching refs:sock

2038 int security_netlink_send(struct sock *sk, struct sk_buff *skb)
2135 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)
2137 return call_int_hook(unix_stream_connect, 0, sock, other, newsk);
2141 int security_unix_may_send(struct socket *sock, struct socket *other)
2143 return call_int_hook(unix_may_send, 0, sock, other);
2152 int security_socket_post_create(struct socket *sock, int family,
2155 return call_int_hook(socket_post_create, 0, sock, family, type,
2165 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)
2167 return call_int_hook(socket_bind, 0, sock, address, addrlen);
2170 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)
2172 return call_int_hook(socket_connect, 0, sock, address, addrlen);
2175 int security_socket_listen(struct socket *sock, int backlog)
2177 return call_int_hook(socket_listen, 0, sock, backlog);
2180 int security_socket_accept(struct socket *sock, struct socket *newsock)
2182 return call_int_hook(socket_accept, 0, sock, newsock);
2185 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
2187 return call_int_hook(socket_sendmsg, 0, sock, msg, size);
2190 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
2193 return call_int_hook(socket_recvmsg, 0, sock, msg, size, flags);
2196 int security_socket_getsockname(struct socket *sock)
2198 return call_int_hook(socket_getsockname, 0, sock);
2201 int security_socket_getpeername(struct socket *sock)
2203 return call_int_hook(socket_getpeername, 0, sock);
2206 int security_socket_getsockopt(struct socket *sock, int level, int optname)
2208 return call_int_hook(socket_getsockopt, 0, sock, level, optname);
2211 int security_socket_setsockopt(struct socket *sock, int level, int optname)
2213 return call_int_hook(socket_setsockopt, 0, sock, level, optname);
2216 int security_socket_shutdown(struct socket *sock, int how)
2218 return call_int_hook(socket_shutdown, 0, sock, how);
2221 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
2227 int security_socket_getpeersec_stream(struct socket *sock, char __user *optval,
2230 return call_int_hook(socket_getpeersec_stream, -ENOPROTOOPT, sock,
2234 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
2236 return call_int_hook(socket_getpeersec_dgram, -ENOPROTOOPT, sock,
2241 int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
2246 void security_sk_free(struct sock *sk)
2251 void security_sk_clone(const struct sock *sk, struct sock *newsk)
2257 void security_sk_classify_flow(struct sock *sk, struct flowi_common *flic)
2270 void security_sock_graft(struct sock *sk, struct socket *parent)
2276 int security_inet_conn_request(struct sock *sk,
2283 void security_inet_csk_clone(struct sock *newsk,
2289 void security_inet_conn_established(struct sock *sk,
2338 int security_tun_dev_attach(struct sock *sk, void *security)
2356 int security_sctp_bind_connect(struct sock *sk, int optname,
2364 void security_sctp_sk_clone(struct sctp_endpoint *ep, struct sock *sk,
2365 struct sock *newsk)