Lines Matching refs:sock
106 struct sock;
117 extern int cap_netlink_send(struct sock *sk, struct sk_buff *skb);
1660 int (*netlink_send) (struct sock *sk, struct sk_buff *skb);
1676 int (*unix_stream_connect) (struct sock *sock, struct sock *other, struct sock *newsk);
1677 int (*unix_may_send) (struct socket *sock, struct socket *other);
1680 int (*socket_post_create) (struct socket *sock, int family,
1682 int (*socket_bind) (struct socket *sock,
1684 int (*socket_connect) (struct socket *sock,
1686 int (*socket_listen) (struct socket *sock, int backlog);
1687 int (*socket_accept) (struct socket *sock, struct socket *newsock);
1688 int (*socket_sendmsg) (struct socket *sock,
1690 int (*socket_recvmsg) (struct socket *sock,
1692 int (*socket_getsockname) (struct socket *sock);
1693 int (*socket_getpeername) (struct socket *sock);
1694 int (*socket_getsockopt) (struct socket *sock, int level, int optname);
1695 int (*socket_setsockopt) (struct socket *sock, int level, int optname);
1696 int (*socket_shutdown) (struct socket *sock, int how);
1697 int (*socket_sock_rcv_skb) (struct sock *sk, struct sk_buff *skb);
1698 …int (*socket_getpeersec_stream) (struct socket *sock, char __user *optval, int __user *optlen, uns…
1699 int (*socket_getpeersec_dgram) (struct socket *sock, struct sk_buff *skb, u32 *secid);
1700 int (*sk_alloc_security) (struct sock *sk, int family, gfp_t priority);
1701 void (*sk_free_security) (struct sock *sk);
1702 void (*sk_clone_security) (const struct sock *sk, struct sock *newsk);
1703 void (*sk_getsecid) (struct sock *sk, u32 *secid);
1704 void (*sock_graft) (struct sock *sk, struct socket *parent);
1705 int (*inet_conn_request) (struct sock *sk, struct sk_buff *skb,
1707 void (*inet_csk_clone) (struct sock *newsk, const struct request_sock *req);
1708 void (*inet_conn_established) (struct sock *sk, struct sk_buff *skb);
1717 int (*tun_dev_attach) (struct sock *sk, void *security);
1932 int security_netlink_send(struct sock *sk, struct sk_buff *skb);
2651 static inline int security_netlink_send(struct sock *sk, struct sk_buff *skb) in security_netlink_send()
2693 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk);
2694 int security_unix_may_send(struct socket *sock, struct socket *other);
2696 int security_socket_post_create(struct socket *sock, int family,
2698 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
2699 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
2700 int security_socket_listen(struct socket *sock, int backlog);
2701 int security_socket_accept(struct socket *sock, struct socket *newsock);
2702 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size);
2703 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
2705 int security_socket_getsockname(struct socket *sock);
2706 int security_socket_getpeername(struct socket *sock);
2707 int security_socket_getsockopt(struct socket *sock, int level, int optname);
2708 int security_socket_setsockopt(struct socket *sock, int level, int optname);
2709 int security_socket_shutdown(struct socket *sock, int how);
2710 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb);
2711 int security_socket_getpeersec_stream(struct socket *sock, char __user *optval,
2713 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid);
2714 int security_sk_alloc(struct sock *sk, int family, gfp_t priority);
2715 void security_sk_free(struct sock *sk);
2716 void security_sk_clone(const struct sock *sk, struct sock *newsk);
2717 void security_sk_classify_flow(struct sock *sk, struct flowi *fl);
2719 void security_sock_graft(struct sock*sk, struct socket *parent);
2720 int security_inet_conn_request(struct sock *sk,
2722 void security_inet_csk_clone(struct sock *newsk,
2724 void security_inet_conn_established(struct sock *sk,
2733 int security_tun_dev_attach(struct sock *sk, void *security);
2737 static inline int security_unix_stream_connect(struct sock *sock, in security_unix_stream_connect() argument
2738 struct sock *other, in security_unix_stream_connect()
2739 struct sock *newsk) in security_unix_stream_connect()
2744 static inline int security_unix_may_send(struct socket *sock, in security_unix_may_send() argument
2756 static inline int security_socket_post_create(struct socket *sock, in security_socket_post_create() argument
2764 static inline int security_socket_bind(struct socket *sock, in security_socket_bind() argument
2771 static inline int security_socket_connect(struct socket *sock, in security_socket_connect() argument
2778 static inline int security_socket_listen(struct socket *sock, int backlog) in security_socket_listen() argument
2783 static inline int security_socket_accept(struct socket *sock, in security_socket_accept() argument
2789 static inline int security_socket_sendmsg(struct socket *sock, in security_socket_sendmsg() argument
2795 static inline int security_socket_recvmsg(struct socket *sock, in security_socket_recvmsg() argument
2802 static inline int security_socket_getsockname(struct socket *sock) in security_socket_getsockname() argument
2807 static inline int security_socket_getpeername(struct socket *sock) in security_socket_getpeername() argument
2812 static inline int security_socket_getsockopt(struct socket *sock, in security_socket_getsockopt() argument
2818 static inline int security_socket_setsockopt(struct socket *sock, in security_socket_setsockopt() argument
2824 static inline int security_socket_shutdown(struct socket *sock, int how) in security_socket_shutdown() argument
2828 static inline int security_sock_rcv_skb(struct sock *sk, in security_sock_rcv_skb()
2834 static inline int security_socket_getpeersec_stream(struct socket *sock, char __user *optval, in security_socket_getpeersec_stream() argument
2840 static inline int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *s… in security_socket_getpeersec_dgram() argument
2845 static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority) in security_sk_alloc()
2850 static inline void security_sk_free(struct sock *sk) in security_sk_free()
2854 static inline void security_sk_clone(const struct sock *sk, struct sock *newsk) in security_sk_clone()
2858 static inline void security_sk_classify_flow(struct sock *sk, struct flowi *fl) in security_sk_classify_flow()
2866 static inline void security_sock_graft(struct sock *sk, struct socket *parent) in security_sock_graft()
2870 static inline int security_inet_conn_request(struct sock *sk, in security_inet_conn_request()
2876 static inline void security_inet_csk_clone(struct sock *newsk, in security_inet_csk_clone()
2881 static inline void security_inet_conn_established(struct sock *sk, in security_inet_conn_established()
2918 static inline int security_tun_dev_attach(struct sock *sk, void *security) in security_tun_dev_attach()