Lines Matching refs:sock
948 int security_netlink_send(struct sock *sk, struct sk_buff *skb)
997 int security_unix_stream_connect(struct socket *sock, struct socket *other,
998 struct sock *newsk)
1000 return security_ops->unix_stream_connect(sock, other, newsk);
1004 int security_unix_may_send(struct socket *sock, struct socket *other)
1006 return security_ops->unix_may_send(sock, other);
1015 int security_socket_post_create(struct socket *sock, int family,
1018 return security_ops->socket_post_create(sock, family, type,
1022 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)
1024 return security_ops->socket_bind(sock, address, addrlen);
1027 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)
1029 return security_ops->socket_connect(sock, address, addrlen);
1032 int security_socket_listen(struct socket *sock, int backlog)
1034 return security_ops->socket_listen(sock, backlog);
1037 int security_socket_accept(struct socket *sock, struct socket *newsock)
1039 return security_ops->socket_accept(sock, newsock);
1042 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)
1044 return security_ops->socket_sendmsg(sock, msg, size);
1047 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
1050 return security_ops->socket_recvmsg(sock, msg, size, flags);
1053 int security_socket_getsockname(struct socket *sock)
1055 return security_ops->socket_getsockname(sock);
1058 int security_socket_getpeername(struct socket *sock)
1060 return security_ops->socket_getpeername(sock);
1063 int security_socket_getsockopt(struct socket *sock, int level, int optname)
1065 return security_ops->socket_getsockopt(sock, level, optname);
1068 int security_socket_setsockopt(struct socket *sock, int level, int optname)
1070 return security_ops->socket_setsockopt(sock, level, optname);
1073 int security_socket_shutdown(struct socket *sock, int how)
1075 return security_ops->socket_shutdown(sock, how);
1078 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
1084 int security_socket_getpeersec_stream(struct socket *sock, char __user *optval,
1087 return security_ops->socket_getpeersec_stream(sock, optval, optlen, len);
1090 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)
1092 return security_ops->socket_getpeersec_dgram(sock, skb, secid);
1096 int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
1101 void security_sk_free(struct sock *sk)
1106 void security_sk_clone(const struct sock *sk, struct sock *newsk)
1111 void security_sk_classify_flow(struct sock *sk, struct flowi *fl)
1123 void security_sock_graft(struct sock *sk, struct socket *parent)
1129 int security_inet_conn_request(struct sock *sk,
1136 void security_inet_csk_clone(struct sock *newsk,
1142 void security_inet_conn_established(struct sock *sk,
1154 void security_tun_dev_post_create(struct sock *sk)
1160 int security_tun_dev_attach(struct sock *sk)
1206 * from the sock.