Skip to content

Commit 3d7214a

Browse files
committed
Revert "sctp: do not peel off an assoc from one netns to another one"
This reverts commit 2a0e609 which is commit df80cd9b28b9ebaa284a41df611dbf3a2d05ca74 upstream as I messed up by applying it to the tree twice. Reported-by: Michal Kubecek <mkubecek@suse.cz> Cc: ChunYu Wang <chunwang@redhat.com> Cc: Xin Long <lucien.xin@gmail.com> Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c73eb1e commit 3d7214a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

net/sctp/socket.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,10 +4453,6 @@ int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp)
44534453
struct socket *sock;
44544454
int err = 0;
44554455

4456-
/* Do not peel off from one netns to another one. */
4457-
if (!net_eq(current->nsproxy->net_ns, sock_net(sk)))
4458-
return -EINVAL;
4459-
44604456
/* Do not peel off from one netns to another one. */
44614457
if (!net_eq(current->nsproxy->net_ns, sock_net(sk)))
44624458
return -EINVAL;

0 commit comments

Comments
 (0)