Lines Matching refs:sk

4500  * @sk: sending socket

4511 int security_netlink_send(struct sock *sk, struct sk_buff *skb)
4513 return call_int_hook(netlink_send, sk, skb);
4799 * @sk: destination sock
4804 * sk_buff @skb has been associated with a particular socket, @sk. Must not
4809 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)
4811 return call_int_hook(socket_sock_rcv_skb, sk, skb);
4874 * @sk: sock
4878 * Allocate and attach a security structure to the sk->sk_security field, which
4883 int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
4885 int rc = lsm_sock_alloc(sk, priority);
4889 rc = call_int_hook(sk_alloc_security, sk, family, priority);
4891 security_sk_free(sk);
4897 * @sk: sock
4901 void security_sk_free(struct sock *sk)
4903 call_void_hook(sk_free_security, sk);
4904 kfree(sk->sk_security);
4905 sk->sk_security = NULL;
4910 * @sk: original sock
4915 void security_sk_clone(const struct sock *sk, struct sock *newsk)
4917 call_void_hook(sk_clone_security, sk, newsk);
4923 * @sk: original socket
4928 void security_sk_classify_flow(const struct sock *sk, struct flowi_common *flic)
4930 call_void_hook(sk_getsecid, sk, &flic->flowic_secid);
4950 * @sk: sock being grafted
4953 * Sets @parent's inode secid to @sk's secid and update @sk with any necessary
4956 void security_sock_graft(struct sock *sk, struct socket *parent)
4958 call_void_hook(sock_graft, sk, parent);
4964 * @sk: parent listening sock
4968 * Initialize the @req LSM state based on @sk and the incoming connect in @skb.
4972 int security_inet_conn_request(const struct sock *sk,
4975 return call_int_hook(inet_conn_request, sk, skb, req);
4994 * @sk: sock
4999 void security_inet_conn_established(struct sock *sk,
5002 call_void_hook(inet_conn_established, sk, skb);
5109 * @sk: associated sock
5117 int security_tun_dev_attach(struct sock *sk, void *security)
5119 return call_int_hook(tun_dev_attach, sk, security);
5156 * @sk: socket
5161 * Validiate permissions required for each address associated with sock @sk.
5168 int security_sctp_bind_connect(struct sock *sk, int optname,
5171 return call_int_hook(sctp_bind_connect, sk, optname, address, addrlen);
5178 * @sk: original sock
5185 void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
5188 call_void_hook(sctp_sk_clone, asoc, sk, newsk);
5211 * @sk: the owning MPTCP socket
5221 int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)
5223 return call_int_hook(mptcp_add_subflow, sk, ssk);