mptcp: fix security context on server socket
authorPaolo Abeni <pabeni@redhat.com>
Wed, 16 Dec 2020 11:48:32 +0000 (12:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:56:48 +0000 (14:56 +0100)
commitaeab3d7a04f8127fa81e3e763914122ad260c930
tree0501db21634d88b0ddf21b7c76290acfd56a56b2
parenta969a632cbe7165d448a5528806ad120c2599397
mptcp: fix security context on server socket

[ Upstream commit 0c14846032f2c0a3b63234e1fc2759f4155b6067 ]

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: cf7da0d66cc1 ("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>
net/mptcp/protocol.c