mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
mptcp: fix security context on server socket
[ Upstream commit0c14846032] Currently MPTCP is not propagating the security context from the ingress request socket to newly created msk at clone time. Address the issue invoking the missing security helper. Fixes:cf7da0d66c("mptcp: Create SUBFLOW socket for incoming connections") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a969a632cb
commit
aeab3d7a04
|
|
@ -2081,6 +2081,8 @@ struct sock *mptcp_sk_clone(const struct sock *sk,
|
|||
sock_reset_flag(nsk, SOCK_RCU_FREE);
|
||||
/* will be fully established after successful MPC subflow creation */
|
||||
inet_sk_state_store(nsk, TCP_SYN_RECV);
|
||||
|
||||
security_inet_csk_clone(nsk, req);
|
||||
bh_unlock_sock(nsk);
|
||||
|
||||
/* keep a single reference */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user