/openbmc/linux/security/selinux/ |
H A D | netlabel.c | 375 void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk) in selinux_netlbl_sctp_sk_clone() argument 378 struct sk_security_struct *newsksec = newsk->sk_security; in selinux_netlbl_sctp_sk_clone()
|
H A D | hooks.c | 4981 struct sock *newsk) in selinux_socket_unix_stream_connect() argument 4985 struct sk_security_struct *sksec_new = newsk->sk_security; in selinux_socket_unix_stream_connect() 5231 static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk) in selinux_sk_clone_security() argument 5234 struct sk_security_struct *newsksec = newsk->sk_security; in selinux_sk_clone_security() 5460 struct sock *newsk) in selinux_sctp_sk_clone() argument 5463 struct sk_security_struct *newsksec = newsk->sk_security; in selinux_sctp_sk_clone() 5469 return selinux_sk_clone_security(sk, newsk); in selinux_sctp_sk_clone() 5474 selinux_netlbl_sctp_sk_clone(sk, newsk); in selinux_sctp_sk_clone() 5513 static void selinux_inet_csk_clone(struct sock *newsk, in selinux_inet_csk_clone() argument 5516 struct sk_security_struct *newsksec = newsk->sk_security; in selinux_inet_csk_clone() [all …]
|
/openbmc/linux/include/linux/ |
H A D | skbuff.h | 2188 static inline void __skb_insert(struct sk_buff *newsk, in __skb_insert() argument 2195 WRITE_ONCE(newsk->next, next); in __skb_insert() 2196 WRITE_ONCE(newsk->prev, prev); in __skb_insert() 2197 WRITE_ONCE(((struct sk_buff_list *)next)->prev, newsk); in __skb_insert() 2198 WRITE_ONCE(((struct sk_buff_list *)prev)->next, newsk); in __skb_insert() 2292 struct sk_buff *newsk) in __skb_queue_after() argument 2302 struct sk_buff *newsk) in __skb_queue_before() argument 2318 struct sk_buff *newsk) in __skb_queue_head() argument 2320 __skb_queue_after(list, (struct sk_buff *)list, newsk); in __skb_queue_head() 2335 struct sk_buff *newsk) in __skb_queue_tail() argument [all …]
|
H A D | security.h | 1433 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk); 1457 void security_sk_clone(const struct sock *sk, struct sock *newsk); 1465 void security_inet_csk_clone(struct sock *newsk, 1482 struct sock *newsk); 1490 struct sock *newsk) in security_unix_stream_connect() argument 1613 static inline void security_sk_clone(const struct sock *sk, struct sock *newsk) in security_sk_clone() argument 1637 static inline void security_inet_csk_clone(struct sock *newsk, in security_inet_csk_clone() argument 1704 struct sock *newsk) in security_sctp_sk_clone() argument
|
H A D | lsm_hook_defs.h | 292 struct sock *newsk) 321 struct sock *newsk) 326 LSM_HOOK(void, LSM_RET_VOID, inet_csk_clone, struct sock *newsk, 346 struct sock *sk, struct sock *newsk)
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_bpf.c | 693 void tcp_bpf_clone(const struct sock *sk, struct sock *newsk) in tcp_bpf_clone() argument 695 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone() 698 newsk->sk_prot = sk->sk_prot_creator; in tcp_bpf_clone()
|
H A D | af_inet.c | 755 void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk) in __inet_accept() argument 757 sock_rps_record_flow(newsk); in __inet_accept() 758 WARN_ON(!((1 << newsk->sk_state) & in __inet_accept() 766 sock_graft(newsk, newsock); in __inet_accept()
|
/openbmc/linux/security/ |
H A D | security.c | 4107 struct sock *newsk) in security_unix_stream_connect() argument 4109 return call_int_hook(unix_stream_connect, 0, sock, other, newsk); in security_unix_stream_connect() 4485 void security_sk_clone(const struct sock *sk, struct sock *newsk) in security_sk_clone() argument 4487 call_void_hook(sk_clone_security, sk, newsk); in security_sk_clone() 4556 void security_inet_csk_clone(struct sock *newsk, in security_inet_csk_clone() argument 4559 call_void_hook(inet_csk_clone, newsk, req); in security_inet_csk_clone() 4746 struct sock *newsk) in security_sctp_sk_clone() argument 4748 call_void_hook(sctp_sk_clone, asoc, sk, newsk); in security_sctp_sk_clone()
|
/openbmc/linux/net/mptcp/ |
H A D | pm_netlink.c | 1069 struct sock *newsk, *ssk; in mptcp_pm_nl_create_listen_socket() local 1078 newsk = entry->lsk->sk; in mptcp_pm_nl_create_listen_socket() 1079 if (!newsk) in mptcp_pm_nl_create_listen_socket() 1088 sock_lock_init_class_and_name(newsk, in mptcp_pm_nl_create_listen_socket() 1094 lock_sock(newsk); in mptcp_pm_nl_create_listen_socket() 1095 ssk = __mptcp_nmpc_sk(mptcp_sk(newsk)); in mptcp_pm_nl_create_listen_socket() 1096 release_sock(newsk); in mptcp_pm_nl_create_listen_socket() 1119 inet_sk_state_store(newsk, TCP_LISTEN); in mptcp_pm_nl_create_listen_socket()
|
H A D | subflow.c | 1956 struct sock *newsk, in subflow_ulp_clone() argument 1960 struct mptcp_subflow_context *old_ctx = mptcp_subflow_ctx(newsk); in subflow_ulp_clone() 1965 subflow_ulp_fallback(newsk, old_ctx); in subflow_ulp_clone() 1969 new_ctx = subflow_create_ctx(newsk, priority); in subflow_ulp_clone() 1971 subflow_ulp_fallback(newsk, old_ctx); in subflow_ulp_clone() 1980 new_ctx->tcp_sock = newsk; in subflow_ulp_clone()
|
/openbmc/linux/net/kcm/ |
H A D | kcmsock.c | 1507 struct sock *newsk; in kcm_clone() local 1518 newsk = sk_alloc(sock_net(osock->sk), PF_KCM, GFP_KERNEL, in kcm_clone() 1520 if (!newsk) { in kcm_clone() 1524 sock_init_data(newsock, newsk); in kcm_clone() 1525 init_kcm_sock(kcm_sk(newsk), kcm_sk(osock->sk)->mux); in kcm_clone()
|
/openbmc/linux/include/net/ |
H A D | inet_connection_sock.h | 261 struct sock *newsk,
|
H A D | tcp.h | 2351 void (*clone)(const struct request_sock *req, struct sock *newsk, 2375 void tcp_bpf_clone(const struct sock *sk, struct sock *newsk); 2391 static inline void tcp_bpf_clone(const struct sock *sk, struct sock *newsk) in tcp_bpf_clone() argument
|
/openbmc/linux/Documentation/security/ |
H A D | SCTP.rst | 119 @newsk - pointer to new sock structure. 269 @newsk - pointer to new sock structure.
|
/openbmc/linux/net/netrom/ |
H A D | af_netrom.c | 779 struct sock *newsk; in nr_accept() local 825 newsk = skb->sk; in nr_accept() 826 sock_graft(newsk, newsock); in nr_accept()
|
/openbmc/linux/net/ax25/ |
H A D | af_ax25.c | 1380 struct sock *newsk; in ax25_accept() local 1432 newsk = skb->sk; in ax25_accept() 1433 sock_graft(newsk, newsock); in ax25_accept() 1439 ax25 = sk_to_ax25(newsk); in ax25_accept()
|
/openbmc/linux/net/sctp/ |
H A D | associola.c | 1071 void sctp_assoc_migrate(struct sctp_association *assoc, struct sock *newsk) in sctp_assoc_migrate() argument 1073 struct sctp_sock *newsp = sctp_sk(newsk); in sctp_assoc_migrate() 1094 assoc->base.sk = newsk; in sctp_assoc_migrate()
|
/openbmc/linux/net/rose/ |
H A D | af_rose.c | 926 struct sock *newsk; in rose_accept() local 973 newsk = skb->sk; in rose_accept() 974 sock_graft(newsk, newsock); in rose_accept()
|
/openbmc/linux/net/x25/ |
H A D | af_x25.c | 878 struct sock *newsk; in x25_accept() local 901 newsk = skb->sk; in x25_accept() 902 sock_graft(newsk, newsock); in x25_accept()
|
/openbmc/linux/include/net/sctp/ |
H A D | sctp.h | 97 void sctp_copy_sock(struct sock *newsk, struct sock *sk,
|
H A D | structs.h | 512 void (*copy_ip_options)(struct sock *sk, struct sock *newsk);
|
/openbmc/linux/drivers/net/usb/ |
H A D | usbnet.c | 419 struct sk_buff *newsk, enum skb_state state) in __usbnet_queue_skb() argument 421 struct skb_data *entry = (struct skb_data *) newsk->cb; in __usbnet_queue_skb() 423 __skb_queue_tail(list, newsk); in __usbnet_queue_skb()
|
/openbmc/linux/security/apparmor/ |
H A D | lsm.c | 886 struct sock *newsk) in apparmor_sk_clone_security() argument 889 struct aa_sk_ctx *new = SK_CTX(newsk); in apparmor_sk_clone_security()
|
/openbmc/linux/net/core/ |
H A D | skbuff.c | 3797 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk) in skb_queue_head() argument 3802 __skb_queue_head(list, newsk); in skb_queue_head() 3818 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk) in skb_queue_tail() argument 3823 __skb_queue_tail(list, newsk); in skb_queue_tail() 3858 void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list) in skb_append() argument 3863 __skb_queue_after(list, old, newsk); in skb_append()
|
/openbmc/linux/security/smack/ |
H A D | smack_lsm.c | 2438 static void smack_sk_clone_security(const struct sock *sk, struct sock *newsk) in smack_sk_clone_security() argument 2441 struct socket_smack *ssp_new = newsk->sk_security; in smack_sk_clone_security() 3741 struct sock *other, struct sock *newsk) in smack_unix_stream_connect() argument 3747 struct socket_smack *nsp = newsk->sk_security; in smack_unix_stream_connect()
|